]> diplodocus.org Git - nmh/blobdiff - test/install-mh/test-version-check
Wait for user to ack new version message.
[nmh] / test / install-mh / test-version-check
index b8a91b683ef642418a76f336c7dd333d4901f63f..f2fbe6c50ae3638a25f14a7ec2980eb077ff4f20 100755 (executable)
@@ -27,7 +27,10 @@ start_test 'with welcome message'
 # Removing Version will trigger the welcome message.
 grep -v Version "$context" > "$context.NEW"
 mv -f "$context.NEW" "$context"
-script -c 'pick last' -q "$actual" >/dev/null
+# The will command wait for the user to hit return.  script seems to do what
+# we want, continue, when run in the background.
+script -c 'pick last' -f -q "$actual" >/dev/null &
+wait $!
 grep 'Welcome to nmh version ' "$actual" >/dev/null
 rm "$actual"
 finish_test
@@ -36,7 +39,8 @@ finish_test
 start_test 'without welcome message'
 # After running the previous test, this one should not have
 # the welcome message.
-script -c 'pick last' -q "$actual" >/dev/null
+script -c 'pick last' -f -q "$actual" >/dev/null &
+wait $!
 grep 'Welcome to nmh version ' "$actual" >/dev/null  &&  false
 rm "$actual"
 finish_test