]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
tests: Check that server ssh login works and reenable server tests
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 12 Apr 2022 22:28:43 +0000 (00:28 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 12 Apr 2022 22:44:47 +0000 (00:44 +0200)
tests/server.wv

index fe6c60f4c1e19725a922ed1d664ae5061de4ecc7..62d0f8d89dce89a7f0fba3db10ad8529fe35dcd5 100755 (executable)
@@ -193,7 +193,8 @@ WVSTART "Setup SSH server's admin key"
 WVPASS sudo_ mkdir -p $(dirname "$AUTH")
 WVPASS sudo_ chmod 700 $(dirname "$AUTH")
 WVPASS sudo_ tee "$AUTH" <<<"command=\"user test admin\" $(cat "$ID_RSA".pub)"
-exit
+# Check that we can really log in
+WVPASS ssh novaboot-test@localhost help
 
 WVSTART "Novaboot --ssh option (connect, rsync, reset)"
 WVPASS sudo_ rm -rf "$TFTPROOT"