debian/tests/test-local-pull: Run the unreliable test separately, repeated 3 times to assess how often it fails

This commit is contained in:
Simon McVittie 2017-01-17 10:36:14 +00:00
parent 33f37eb6d6
commit f0785125c2
3 changed files with 23 additions and 1 deletions

3
debian/changelog vendored
View File

@ -7,6 +7,9 @@ ostree (2016.15-3) UNRELEASED; urgency=medium
the script but do not attempt to run it the script but do not attempt to run it
* debian/tests/gnome-desktop-testing: Skip test-local-pull.sh.test * debian/tests/gnome-desktop-testing: Skip test-local-pull.sh.test
which suffers from a known bug (#842606) which suffers from a known bug (#842606)
* debian/tests/gnome-desktop-testing: Fail if no tests were found
- debian/tests/test-local-pull: Run the unreliable test separately,
repeated 3 times to assess how often it fails
-- Simon McVittie <smcv@debian.org> Sun, 15 Jan 2017 14:37:12 +0000 -- Simon McVittie <smcv@debian.org> Sun, 15 Jan 2017 14:37:12 +0000

View File

@ -1,4 +1,4 @@
Tests: gnome-desktop-testing Tests: gnome-desktop-testing, test-local-pull
Depends: gnome-desktop-testing, ostree-tests Depends: gnome-desktop-testing, ostree-tests
Tests: build Tests: build

19
debian/tests/test-local-pull vendored Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
set -e
exec 2>&1
N=3
passed=0
for i in `seq 1 $N`; do
if gnome-desktop-testing-runner ostree/test-local-pull.sh.test; then
passed=$(( $passed + 1))
fi
done
echo "test-local-pull: passed $passed/$N attempts"
if [ "$passed" -ne "$N" ]; then
exit 1
fi