X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b47fb120e5b0a106369fa8e330fcb24877837e0f..3c3c79819770d88bfdbd42f5996179290db25a7c:/buildtools/Cmake/Scripts/tesh.pl diff --git a/buildtools/Cmake/Scripts/tesh.pl b/buildtools/Cmake/Scripts/tesh.pl index 9106358bdc..9f218e9101 100755 --- a/buildtools/Cmake/Scripts/tesh.pl +++ b/buildtools/Cmake/Scripts/tesh.pl @@ -442,7 +442,6 @@ LINE: while (not $finished and not $error) { $line_num++; chomp $line; $line =~ s/\r//g; - #print $diff_tool_tmp_fh "$line\n"; print "[TESH/debug] $line_num: $line\n" if $opts{'debug'}; my $next; # deal with line continuations @@ -623,9 +622,11 @@ foreach(@bg_cmds){ @bg_cmds=(); -close $diff_tool_tmp_fh; -system("$diff_tool $diff_tool_tmp_filename $tesh_file"); -unlink $diff_tool_tmp_filename; +if ($diff_tool) { + close $diff_tool_tmp_fh; + system("$diff_tool $diff_tool_tmp_filename $tesh_file"); + unlink $diff_tool_tmp_filename; +} if($error !=0){ exit $exitcode;