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 9c76ca9e authored by boklm's avatar boklm
Browse files

marionette_run: avoid error when result file does not exist

parent dea7d431
......@@ -773,7 +773,7 @@ sub marionette_run {
$OSNAME eq 'cygwin' ? () : ('--workspace', $test->{workspace}),
winpath("$FindBin::Bin/marionette/tor_browser_tests/test_${marionette_test}.py"));
$ENV{PYTHONPATH} = $pypath;
my @txt_log = read_file($result_file_txt);
my @txt_log = -f $result_file_txt ? read_file($result_file_txt) : ('NoFile');
my $res_line = shift @txt_log;
$test->{results}{success} = $res_line eq ".\n" || $res_line eq ".\r\n";
$test->{results}{log} = join '', @txt_log;
......
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