Skip to content
Snippets Groups Projects
Commit a70a890d authored by Michal Sojka's avatar Michal Sojka
Browse files

run.pl: Better error messages

parent 2c2fd02e
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,12 @@ system("cat > $S99; chmod +x $S99") unless -t STDIN;
# Boot the gateway
# die("No boot command") if ($#ARGV eq -1);
my $bootcmd = scalar @ARGV ? "'".join("' '", @ARGV)."'" : "$FindBin::Bin/boot";
$exp = Expect->spawn($bootcmd);
$exp = Expect->spawn($bootcmd) or die "Cannot spawn $bootcmd: $!";
$exp->expect(120,
'Welcome to Buildroot',
'UGW started',
'-re', 't...a...s...k...s... ...s...t...a...r...t...e...d') # RTEMS has bug - it sends 4 characters instead of just one
or die "Cannot spawn $bootcmd: $!";
or die("Boot failed");
# Measure latencies
my $latester=<<'EOF';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment