File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
overlayfs/tests/ts0001-guess-overlayfs
rootfs/tests/ts0001-guess-rootfs Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -eu
2
2
3
+ [ -z " ${IGNORE_UNPRIV_USERNS_TESTS-} " ] ||
4
+ exit 127
5
+
3
6
cwd=" ${0%/* } "
4
7
5
8
export GUESS_SUFFIX=add:guess-root
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -eu
2
2
3
+ [ -z " ${IGNORE_UNPRIV_USERNS_TESTS-} " ] ||
4
+ exit 127
5
+
3
6
cwd=" ${0%/* } "
4
7
5
8
export GUESS_SUFFIX=add:guess-root
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ for testsuite in "$@"; do
29
29
num=" $( printf ' %4s' " $i " ) "
30
30
i=$(( $i + 1 ))
31
31
32
- echo " [$num /$max ] ${ts##*/ } "
32
+ echo -n " [$num /$max ] ${ts##*/ } "
33
33
fi
34
34
35
35
{
@@ -38,6 +38,15 @@ for testsuite in "$@"; do
38
38
echo " rc=$rc " ;
39
39
} > " $ts " /output 2>&1
40
40
41
+ if [ " $rc " = 127 ]; then
42
+ [ -z " ${VERBOSE:- ${V:- } } " ] ||
43
+ echo " [skipped]"
44
+ rm -f -- " $ts " /output
45
+ continue
46
+ fi
47
+ [ -z " ${VERBOSE:- ${V:- } } " ] ||
48
+ echo
49
+
41
50
[ ! -f " $ts " /expect.in ] ||
42
51
sed \
43
52
-e " s#@ts@#${ts##*/ } #g" \
You can’t perform that action at this time.
0 commit comments