From 4db698513b6523633cc80c9e9442def4294702a1 Mon Sep 17 00:00:00 2001 From: Joel Allred Date: Tue, 4 Jul 2017 15:07:26 +0200 Subject: [PATCH] Rename regression tests output file Instead of naming the *.out file after the file under test, we name it after the test description. This prevents clashes when several test descriptions are present in the directory. --- regression/test.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/regression/test.pl b/regression/test.pl index 0bf364b86c3..5dea22fd1d3 100755 --- a/regression/test.pl +++ b/regression/test.pl @@ -71,7 +71,8 @@ ($$$$$) $options =~ s/$ign//g if(defined($ign)); - my $output = $input; + my $output = $test; + $output =~ s/^.*\///; $output =~ s/\.[^.]*$/.out/; if($output eq $input) { @@ -80,6 +81,7 @@ ($$$$$) } print LOG "Test '$name'\n"; + print LOG " Test file: $test\n"; print LOG " Level: $level\n"; print LOG " Input: $input\n"; print LOG " Output: $output\n";