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

STY: Wrapped long lines in test.sh

parent 6a402886
No related branches found
No related tags found
2 merge requests!43REL: Release 0.4.1,!41F fix assure in list
Pipeline #21911 canceled
......@@ -35,14 +35,17 @@ echo "Testing the crawler database"
python3 -m pytest test_crawler_with_cfoods.py
echo "make a change"
cd extroot
egrep -liRZ 'A description of another example' . | xargs -0 -l sed -i -e 's/A description of another example/A description of this example/g'
egrep -liRZ 'A description of another example' . \
| xargs -0 -l sed -i -e 's/A description of another example/A description of this example/g'
# remove a file to check that this does not lead to a crawler crash
mv DataAnalysis/2010_TestProject/2019-02-03_something/README.xlsx DataAnalysis/2010_TestProject/2019-02-03_something/README.xlsx_back
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
# 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
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
# get the id of the run which is the last field of the output string
......@@ -59,7 +62,8 @@ fi
set -e
echo "Undoing previous changes to extroot content..."
cd extroot
egrep -liRZ 'A description of this example' . | xargs -0 -l sed -i -e 's/A description of this example/A description of another example/g'
egrep -liRZ 'A description of this example' . \
| xargs -0 -l sed -i -e 's/A description of this example/A description of another example/g'
cd ..
echo "Done."
python3 test_table.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment