-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sr/reusable-test-runner-script'
Signed-off-by: Elijah Newren <[email protected]>
- Loading branch information
Showing
4 changed files
with
40 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
cd $(dirname $0) | ||
|
||
# Put git_filter_repo.py on the front of PYTHONPATH | ||
export PYTHONPATH="$PWD/..${PYTHONPATH:+:$PYTHONPATH}" | ||
|
||
# We pretend filenames are unicode for two reasons: (1) because it exercises | ||
# more code, and (2) this setting will detect accidental use of unicode strings | ||
# for file/directory names when it should always be bytestrings. | ||
export PRETEND_UNICODE_ARGS=1 | ||
|
||
export TEST_SHELL_PATH=/bin/sh | ||
|
||
failed=0 | ||
|
||
for t in t[0-9]*.sh | ||
do | ||
printf '\n\n== %s ==\n' "$t" | ||
bash $t "$@" || failed=$(($failed+1)) | ||
done | ||
|
||
if [ 0 -lt $failed ] | ||
then | ||
exit 1 | ||
fi |