slipshow: add configurable port to nixosTest

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2025-12-01 10:12:29 -05:00
parent 3da8a03823
commit f4fe3e5080

View File

@@ -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")
'';
}