Skip to content
Snippets Groups Projects
Verified Commit 0386153c authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Unrelated shell script maintenance.

parent 43dfe182
No related branches found
No related tags found
2 merge requests!73MAINT: change wording of TableImporter argument and allow converters and...,!71MAINT: adapt to new default keyword RECORD in FIND queries
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment