mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
slipshow: add configurable port to nixosTest
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -25,11 +25,9 @@
|
||||
start_all()
|
||||
|
||||
# it may take around a minute to compile the file and serve it
|
||||
machine.succeed("slipshow serve /etc/slipshow/bbslides.md &>/dev/null &")
|
||||
machine.succeed("slipshow serve -p 6000 /etc/slipshow/bbslides.md &>/dev/null &")
|
||||
|
||||
# slipshow serves defaultly on :8080 and unfortunately cannot
|
||||
# be changed currently
|
||||
machine.wait_for_open_port(8080)
|
||||
machine.succeed("curl -i 0.0.0.0:8080")
|
||||
machine.wait_for_open_port(6000)
|
||||
machine.succeed("curl -i 0.0.0.0:6000")
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user