From 0386153ce5fba1ad9db56d6fb2b48c0beb3a2455 Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Wed, 12 Apr 2023 12:27:27 +0200 Subject: [PATCH] MAINT: Unrelated shell script maintenance. --- integrationtests/test.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/integrationtests/test.sh b/integrationtests/test.sh index ab6ea545..9f8d003c 100755 --- a/integrationtests/test.sh +++ b/integrationtests/test.sh @@ -43,23 +43,23 @@ mv DataAnalysis/2010_TestProject/2019-02-03_something/README.xlsx \ DataAnalysis/2010_TestProject/2019-02-03_something/README.xlsx_back cd .. echo "run crawler" -./crawl.py / | tee $OUT +./crawl.py / | tee "$OUT" # rename the moved file mv extroot/DataAnalysis/2010_TestProject/2019-02-03_something/README.xlsx_back \ extroot/DataAnalysis/2010_TestProject/2019-02-03_something/README.xlsx # check whether there was something UNAUTHORIZED -grep "There where unauthorized changes" $OUT +grep "There where unauthorized changes" "$OUT" # get the id of the run which is the last field of the output string -RUN_ID=$(grep "run id:" $OUT | awk '{ print $NF }') +RUN_ID=$(grep "run id:" "$OUT" | awk '{ print $NF }') echo $RUN_ID echo "run crawler again" echo "./crawl.py -a $RUN_ID /" -./crawl.py -a $RUN_ID / | tee $OUT +./crawl.py -a $RUN_ID / | tee "$OUT" set +e -if grep "There where unauthorized changes" $OUT +if grep "There where unauthorized changes" "$OUT" then - echo "There were still unauthorized changes which should not have happend!" - echo "Test FAILED!" + echo "There still were unauthorized changes, which should not have happend!" + echo "Test FAILED" exit 1 fi set -e -- GitLab