Skip to content

Commit 933d8d5

Browse files
committed
prepare-testmachine: added logging to aid debugging
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent bb37a9b commit 933d8d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-scripts/prepare-testmachine

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
. detect-environment
1919
. compile-options
2020

21+
log_debug "Preparing test machine (TEST_MACHINE=$TEST_MACHINE)"
22+
2123
# Dispatch to appropriate test machine preparation script
2224
case "$TEST_MACHINE" in
2325
chroot)
@@ -26,7 +28,7 @@ chroot)
2628
;;
2729
*)
2830
# Add VMs, etc here.
29-
echo "Only chroot test machines are supported at the moment."
31+
log_error "Unsupported test machine type: $TEST_MACHINE: Only chroot test machines are supported at the moment."
3032
exit 1
3133
;;
3234
esac

0 commit comments

Comments
 (0)