diff --git a/tests/tftpboot/configuration.nix b/tests/tftpboot/configuration.nix index f57577d7..9196037c 100644 --- a/tests/tftpboot/configuration.nix +++ b/tests/tftpboot/configuration.nix @@ -17,7 +17,9 @@ in { ../../modules/outputs/ext4fs.nix ../../modules/outputs/tftpboot.nix ]; + config = { + hostname = "tftpboot-test"; # use extracted dts if it was null in the device # definition, use actual dts if provided hardware.dts.src = lib.mkOverride 500 dts; diff --git a/tests/tftpboot/script.expect b/tests/tftpboot/script.expect index a622e158..63d54e25 100644 --- a/tests/tftpboot/script.expect +++ b/tests/tftpboot/script.expect @@ -20,11 +20,11 @@ expect { } expect { - "#" { send "test -f /proc/device-tree/reserved-memory/phram-rootfs*/name && tty \r" } + "#" { send "test -f /proc/device-tree/reserved-memory/phram-rootfs*/name && hostname \r" } timeout { exit 1 } } expect { - "/dev/ttyS0" { exit 0 } + "tftpboot-test" { exit 0 } timeout { exit 1 } } \ No newline at end of file