File tree 2 files changed +17
-16
lines changed 2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,11 @@ jobs:
24
24
printf '#!/bin/sh\n\nexec python "$@"\n' >python3 &&
25
25
26
26
export PATH=$PWD:$PATH &&
27
- export PYTHONPATH=$PWD &&
28
- export TEST_SHELL_PATH=/bin/sh &&
29
27
30
- failed=0 &&
31
- cd t &&
32
- for t in t[0-9]*.sh
33
- do
34
- printf '\n\n== %s ==\n' "$t" &&
35
- bash $t -q -v -x ||
36
- failed=$(($failed+1))
37
- done &&
38
- if test 0 != $failed
28
+ if ! t/run_tests -q -v -x
39
29
then
40
- mkdir ../ failed &&
41
- tar czf ../ failed/failed.tar.gz .
30
+ mkdir failed &&
31
+ tar czf failed/failed.tar.gz t
42
32
exit 1
43
33
fi
44
34
- name : upload failed tests' directories
Original file line number Diff line number Diff line change @@ -3,14 +3,25 @@ set -eu
3
3
4
4
cd $( dirname $0 )
5
5
6
+ # Put git_filter_repo.py on the front of PYTHONPATH
7
+ export PYTHONPATH=" $PWD /..${PYTHONPATH: +: $PYTHONPATH } "
8
+
6
9
# We pretend filenames are unicode for two reasons: (1) because it exercises
7
10
# more code, and (2) this setting will detect accidental use of unicode strings
8
11
# for file/directory names when it should always be bytestrings.
9
12
export PRETEND_UNICODE_ARGS=1
10
13
14
+ export TEST_SHELL_PATH=/bin/sh
15
+
11
16
failed=0
12
17
13
- for test in t939* .sh; do
14
- ./$test || failed=1
18
+ for t in t[0-9]* .sh
19
+ do
20
+ printf ' \n\n== %s ==\n' " $t "
21
+ bash $t " $@ " || failed=$(( $failed + 1 ))
15
22
done
16
- exit $failed
23
+
24
+ if [ 0 -lt $failed ]
25
+ then
26
+ exit 1
27
+ fi
You can’t perform that action at this time.
0 commit comments