summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-08-31 16:13:36 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-08-31 16:13:36 +0200
commitd2b7b1300c7567b4c9d9b057d5077e66a9ba18b6 (patch)
tree70c03ce315ebbbf1abf143b14ac433ef9ab8f856 /test/integration
parenta94850b76d39b958d87c9010dc9fd969e16c0a77 (diff)
do delay the test for http, too, to make it more reliable
The file method was already slowed down and somehow I thought I had done the same for http, but it turns out that I didn't. Giving it the same delay as file should help in making this test slower and therefore more likely to successfully test what it is supposed to test. Git-Dch: Ignore
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-acquire-same-repository-multiple-times9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/integration/test-acquire-same-repository-multiple-times b/test/integration/test-acquire-same-repository-multiple-times
index d3cb46c14..abdfef8f0 100755
--- a/test/integration/test-acquire-same-repository-multiple-times
+++ b/test/integration/test-acquire-same-repository-multiple-times
@@ -26,17 +26,18 @@ mkdir $NEWMETHODS
for METH in $(find $OLDMETHODS ! -type d); do
ln -s $OLDMETHODS/$(basename $METH) $NEWMETHODS
done
-rm $NEWMETHODS/file
-cat >$NEWMETHODS/file <<EOF
+rm "${NEWMETHODS}/file" "${NEWMETHODS}/http"
+cat >"${NEWMETHODS}/file" <<EOF
#!/bin/sh
while read line; do
echo "\$line"
if [ -z "\$line" ]; then
sleep 0.5
fi
-done | $OLDMETHODS/file
+done | "$OLDMETHODS/\${0##*/}"
EOF
-chmod +x $NEWMETHODS/file
+chmod +x "${NEWMETHODS}/file"
+ln -s "${NEWMETHODS}/file" "${NEWMETHODS}/http"
tworepos() {
msgtest "Downloading the same repository twice over $1" "$3"