Skip to content
Snippets Groups Projects
Commit 60796afd authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'logging-setup' into tmp

parents 9464ab5e b678afa0
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ echo "run crawler" ...@@ -19,7 +19,7 @@ echo "run crawler"
./crawl.py / > $OUT ./crawl.py / > $OUT
# check whether there was something UNAUTHORIZED # check whether there was something UNAUTHORIZED
set -e set -e
grep "UNAUTHORIZED UPDATE" $OUT grep "There where unauthorized changes" $OUT
# get the id of the run which is the last field of the output string # 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_ID
...@@ -27,7 +27,7 @@ echo "run crawler again" ...@@ -27,7 +27,7 @@ echo "run crawler again"
echo "./crawl.py -a $RUN_ID /" echo "./crawl.py -a $RUN_ID /"
./crawl.py -a $RUN_ID / > $OUT ./crawl.py -a $RUN_ID / > $OUT
set +e set +e
if grep "UNAUTHORIZED UPDATE" $OUT if grep "There where unauthorized changes" $OUT
then then
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment