fix some shellcheck-identified issues in scripts

This commit is contained in:
a1346054
2021-08-18 18:21:06 +00:00
parent f20c688a18
commit ecfcaed0b5
3 changed files with 14 additions and 17 deletions

View File

@@ -51,10 +51,10 @@ echo "-: test failed"
# Empty the complete log.
> testsuite.log
find ${build_path} -name "*.gcda" -delete
find "${build_path}" -name "*.gcda" -delete
run_test ./su/01/su_root.test
run_test ./su/01/su_user.test
find ${build_path} -name "*.gcda" -exec chmod a+rw {} \;
find "${build_path}" -name "*.gcda" -exec chmod a+rw {} \;
run_test ./su/02/env_FOO-options_--login
run_test ./su/02/env_FOO-options_--login_bash
run_test ./su/02/env_FOO-options_--preserve-environment
@@ -133,9 +133,8 @@ echo
echo "$succeeded test(s) passed"
echo "$failed test(s) failed"
echo "log written in 'testsuite.log'"
if [ "$failed" != "0" ]
if [ "$failed" != 0 ]
then
echo "the following tests failed:"
echo $failed_tests
echo "$failed_tests"
fi