mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-08 16:30:28 +03:00
run-tests: always cleanup testfiles
This commit is contained in:
parent
6ba40b7349
commit
b1fca3f722
1 changed files with 11 additions and 5 deletions
|
|
@ -80,6 +80,17 @@ exit(c.get('apksigner') is None)
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err_handler() {
|
||||||
|
# remove this to prevent git conflicts and complaining
|
||||||
|
rm -rf "$WORKSPACE"/fdroidserver.egg-info/
|
||||||
|
rm -rf "$WORKSPACE"/.testfiles/run-tests.*
|
||||||
|
rm -rf "$WORKSPACE"/.testfiles/test_*
|
||||||
|
rm -f "$WORKSPACE"/.testfiles/tmp.*
|
||||||
|
rmdir --ignore-fail-on-non-empty "$WORKSPACE"/.testfiles
|
||||||
|
}
|
||||||
|
|
||||||
|
trap err_handler INT EXIT
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
# "main"
|
# "main"
|
||||||
|
|
||||||
|
|
@ -1427,9 +1438,4 @@ grep "CurrentVersionCode: 1" metadata/fake.yml
|
||||||
|
|
||||||
unset GIT_ALLOW_PROTOCOL
|
unset GIT_ALLOW_PROTOCOL
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
|
||||||
|
|
||||||
# remove this to prevent git conflicts and complaining
|
|
||||||
rm -rf $WORKSPACE/fdroidserver.egg-info/
|
|
||||||
|
|
||||||
echo SUCCESS
|
echo SUCCESS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue