Skip to content

Commit a2adda7

Browse files
Mic92mergify[bot]
authored andcommitted
don't allow to run the vm test if we have generate-hardware-configuration set
1 parent 0a1dd4c commit a2adda7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nixos-anywhere.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,9 @@ main() {
613613
parseArgs "$@"
614614

615615
if [[ ${vmTest} == y ]]; then
616+
if [[ ${hardwareConfigBackend} != "none" ]]; then
617+
abort "--vm-test is not supported with --generate-hardware-config. You need to generate the hardware configuration before you can run the VM test." >&2
618+
fi
616619
runVmTest
617620
exit 0
618621
fi

0 commit comments

Comments
 (0)