GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Unverified Commit 90530129 authored by boklm's avatar boklm
Browse files

mozmill: avoid error if results json file does not exist

parent e5f8633d
......@@ -647,9 +647,13 @@ sub mozmill_run {
push @{$test->{screenshots}}, "$test->{name}-$i.png";
$i++;
}
$test->{results} = decode_json(read_file($results_file));
$test->{results}{success} = $test->{results}{results}->[0]->{passed} ?
!$test->{results}{results}->[0]->{failed} : 0;
if (-f $results_file) {
$test->{results} = decode_json(read_file($results_file));
$test->{results}{success} = $test->{results}{results}->[0]->{passed} ?
!$test->{results}{results}->[0]->{failed} : 0;
} else {
$test->{results}{success} = 0;
}
reset_test_prefs($tbbinfos, $test);
if ($options->{use_strace}) {
parse_strace($tbbinfos, $test);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment