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 committed 2017-01-19 12:07:39 +00:00
1 parent 33f37eb6d6
commit f0785125c2
3 files changed
+23 -1

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
Tests: gnome-desktop-testing
Tests: gnome-desktop-testing, test-local-pull
Depends: gnome-desktop-testing, ostree-tests
Tests: build
Vendored Executable
+19
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