criu/scripts/travis/asan.sh
Adrian Reber 84215e0355 scripts: run shellcheck on the scripts folder
Shellcheck (https://github.com/koalaman/shellcheck) can identify common
errors in shell scripts. This initial integration of shellcheck only
checks the scripts in the 'scripts/' folder. This commit fixes (or
disables) all reports of shellcheck to ensure this part starts error
free. I am not convinced this is really necessary as most changes do not
seem to be necessary for their circumstances. On the other hand it
probably does not hurt to use a checker to avoid unnecessary errors.

Signed-off-by: Adrian Reber <areber@redhat.com>
2020-10-20 00:18:24 -07:00

23 lines
420 B
Bash
Executable file

#!/bin/bash
# shellcheck disable=2044
set -x
cat /proc/self/mountinfo
chmod 0777 test
chmod 0777 test/zdtm/transition/
chmod 0777 test/zdtm/static
./test/zdtm.py run -a --keep-going -k always --parallel 4 -x zdtm/static/rtc "$@"
ret=$?
for i in $(find / -name 'asan.log*'); do
echo "$i"
echo ========================================
cat "$i"
echo ========================================
ret=1
done
exit $ret