diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-10-26 03:02:11 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-10-26 03:02:11 -0400 |
commit | 96ac22cf25565e62b5a8a2dae820b074cb5ab32d (patch) | |
tree | 752ffa5cf9ee15d410488e85ec015122e718bb8b /tests/basic | |
parent | 6b5b0fdfc95625892df654e4ae057a798e59d588 (diff) |
testing: A bit more fine-tuning, so that the test suite should successfully complete without any user interaction.
Diffstat (limited to 'tests/basic')
-rwxr-xr-x | tests/basic | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/basic b/tests/basic index 8d2b8f8..2befac2 100755 --- a/tests/basic +++ b/tests/basic @@ -22,18 +22,16 @@ gpgadmin() { failed_cleanup() { # FIXME: can we be more verbose here? echo 'FAILED!' + read -p "press enter to cleanup and remove tmp:" + cleanup } # cleanup: cleanup() { - - echo - read -p "press enter to cleanup and remove tmp:" - - if ( ps $SSHD_PID >/dev/null ) ; then + if ( ps "$SSHD_PID" >/dev/null ) ; then echo "### stopping still-running sshd..." - kill $SSHD_PID + kill "$SSHD_PID" fi echo "### removing temp dir..." @@ -162,7 +160,12 @@ monkeysphere-server update-users "$USER" echo "### testuser connecting to sshd socket..." ssh-agent bash -c \ - "monkeysphere subkey-to-ssh-agent && ssh -F $TEMPDIR/testuser/.ssh/config testhost" + "monkeysphere subkey-to-ssh-agent && ssh -F $TEMPDIR/testuser/.ssh/config testhost true" trap - EXIT + +echo +echo "Monkeysphere basic tests completed successfully!" +echo + cleanup |