File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,13 @@ spec = do
9999 cs (stderr result) `shouldContain` " Building NixOS config...\n Command exited with code 1"
100100 cs (stderr result) `shouldContain` " does not provide attribute 'packages.x86_64-linux.nixosConfigurations.\" does-not-exist\" "
101101
102+ it " `vmcli start` doesn't mess up the terminal" $ \ ctx -> do
103+ writeStandardFlake ctx Nothing
104+ Cradle. StdoutRaw before <- Cradle. run $ Cradle. cmd " stty" & Cradle. addArgs [" -a" :: Text ]
105+ _ <- assertSuccess $ test ctx [" start" , " server" ]
106+ Cradle. StdoutRaw after <- Cradle. run $ Cradle. cmd " stty" & Cradle. addArgs [" -a" :: Text ]
107+ after `shouldBe` before
108+
102109 it " starts vms with arbitrary hostnames" $ \ ctx -> do
103110 writeStandardFlake ctx (Just " { lib, ...} : { networking.hostName = lib.mkForce \" other-hostname\" ; }" )
104111 _ <- assertSuccess $ test ctx [" up" , " server" ]
You can’t perform that action at this time.
0 commit comments