move noise sources around in tests

wlan test shows output to make it easier to see when it went wrong
This commit is contained in:
Daniel Barlow 2023-03-10 18:41:43 +00:00
parent 225fc6fe51
commit 9f03276db8
3 changed files with 4 additions and 4 deletions

2
ci.nix
View file

@ -31,4 +31,4 @@ let
liminix-config = vanilla; liminix-config = vanilla;
}).outputs.default; }).outputs.default;
}; };
in builtins.trace jobs jobs in jobs

View file

@ -35,5 +35,5 @@ trap fatal ERR
mkdir vm mkdir vm
mips-vm --background ./vm ${img}/vmlinux ${img}/squashfs mips-vm --background ./vm ${img}/vmlinux ${img}/squashfs
expect ${./wait-for-wlan.expect} > output && mv output $out expect ${./wait-for-wlan.expect} |tee output && mv output $out
'' ''

View file

@ -3,11 +3,11 @@ set timeout 60
spawn socat unix-connect:vm/console - spawn socat unix-connect:vm/console -
send "\r\n" send "\r\n"
expect "login:" { send "root\r\n" } expect "login:" { send "root\r\n" }
expect "/ #" expect "#"
set FINISHED 0 set FINISHED 0
set EXIT "1" set EXIT "1"
send "ls -l /run/uncaught-logs/current\r\n" send "ls -l /run/uncaught-logs/current\r\n"
expect "/ #" expect "#"
while { $FINISHED < 10 } { while { $FINISHED < 10 } {
send "grep AP-ENABLED /run/uncaught-logs/current || echo not\r\n" send "grep AP-ENABLED /run/uncaught-logs/current || echo not\r\n"