X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/b165a6fb4d53687a99469c6f4cc41c5ac2150945..ae829d30657a177845d8a5555218bc39dd52003a:/continuous/gw-setup/run.pl diff --git a/continuous/gw-setup/run.pl b/continuous/gw-setup/run.pl index f1bfe33..f594fad 100755 --- a/continuous/gw-setup/run.pl +++ b/continuous/gw-setup/run.pl @@ -14,7 +14,9 @@ $|=1; my $ready; while (<$boot>){ - last if ($ready = /Welcome to Buildroot/ || /UGW started/); + last if ($ready = m/Welcome to Buildroot/ || + m/UGW started/ || + m/t...a...s...k...s... ...s...t...a...r...t...e...d/); # RTEMS has bug - it sends 4 characters instead of just one } die "Boot failed" unless $ready; @@ -42,9 +44,7 @@ sub kill_boot() { kill('TERM', -$pid) if defined $pid; } sub run_boot() { # die("No boot command") if ($#ARGV eq -1); - my $bootcmd = "'".join("' '", @ARGV)."'"; - - $bootcmd ||= "$FindBin::Bin/boot"; + my $bootcmd = scalar @ARGV ? "'".join("' '", @ARGV)."'" : "$FindBin::Bin/boot"; $SIG{INT} = sub { kill_boot(); exit; };