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

Avoid error when the strage log file does not exist

parent a70cf941
......@@ -521,7 +521,8 @@ sub parse_strace {
$test->{results}{connections} = {};
my %modified_files;
my %removed_files;
foreach my $line (read_file($logfile)) {
my @lines = read_file($logfile) if -f $logfile;
foreach my $line (@lines) {
if ($line =~ m/^\d+ open\("((?:[^"\\]++|\\.)*+)", ([^\)]+)/ ||
$line =~ m/^\d+ openat\([^,]+, "((?:[^"\\]++|\\.)*+)", ([^\)]+)/) {
next if $2 =~ m/O_RDONLY/;
......
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