testing: Make sure the kernel exists when starting
authorTobias Brunner <tobias@strongswan.org>
Mon, 25 Aug 2014 08:58:46 +0000 (10:58 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 25 Aug 2014 08:58:46 +0000 (10:58 +0200)
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"