Skip to content

Commit 12ba3c0

Browse files
ehughsbairdkevingranade
authored andcommitted
Handle name differences for delta/signledelta
1 parent 216a578 commit 12ba3c0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tools/reduce_tests.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212

1313
set -ue
1414

15-
if ! which singledelta &>/dev/null
15+
DELTA=singledelta
16+
if !which $DELTA &> /dev/null && which delta &> /dev/null
1617
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
1823
exit 1
1924
fi
2025

@@ -60,6 +65,6 @@ export REDUCE_TESTS_TEST_EXE=$test_exe
6065
# We have to add braces around the lines to avoid topformflat messing up the file.
6166
# The braces are removed again inside our helper script.
6267
"$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
6469

6570
# vim:tw=0

0 commit comments

Comments
 (0)