File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
set -ue
14
14
15
- if ! which singledelta & > /dev/null
15
+ DELTA=singledelta
16
+ if ! which $DELTA & > /dev/null && which delta & > /dev/null
16
17
then
17
- echo " singledelta not found. Please install it to use this script" >&2
18
+ DELTA=delta
19
+ fi
20
+ if ! which $DELTA & > /dev/null
21
+ then
22
+ echo " delta/singledelta not found. Please install it to use this script" >&2
18
23
exit 1
19
24
fi
20
25
@@ -60,6 +65,6 @@ export REDUCE_TESTS_TEST_EXE=$test_exe
60
65
# We have to add braces around the lines to avoid topformflat messing up the file.
61
66
# The braces are removed again inside our helper script.
62
67
" $test_exe " --list-test-names-only ' ~[.]' | grep ' [^ ]' | sed ' s/.*/{&}/' > list_of_tests || true
63
- singledelta -in_place -test=tools/reduce_tests_helper.sh list_of_tests
68
+ $DELTA -in_place -test=tools/reduce_tests_helper.sh list_of_tests
64
69
65
70
# vim:tw=0
You can’t perform that action at this time.
0 commit comments