testing: Make sure the kernel exists when starting
[strongswan.git] / testing / start-testing
index 45cf4c9..83291de 100755 (executable)
@@ -17,6 +17,7 @@ echo "Starting test environment"
 
 check_commands kvm virsh
 
+[ -f $KNLSRC ] || die "Kernel $KNLSRC not found"
 log_action "Deploying kernel $KERNEL"
 execute "ln -fs $KNLSRC $KNLTARGET"