X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2b5c56b4c427b0b0be7c970c86cf62b85106251f..9c300852ad4204e21d42402f7d1bbb266cf0b27f:/tools/tesh/tesh.pl diff --git a/tools/tesh/tesh.pl b/tools/tesh/tesh.pl index 34f17ff8af..fe1d60dbf0 100755 --- a/tools/tesh/tesh.pl +++ b/tools/tesh/tesh.pl @@ -326,9 +326,13 @@ if ($diff_tool) { } if ( $tesh_file =~ m/(.*)\.tesh/ ) { - my $dir = qx,pwd,; - chomp($dir); - print "Test suite '$dir/$tesh_file'\n"; + my $fullname = $tesh_file; + if (not ($fullname =~ m|^/|)) { # not absolute path + my $dir = qx,pwd,; + chomp($dir); + $fullname = "$dir/$fullname" + } + print "Test suite '$tesh_file'\n"; } else { $tesh_name = "(stdin)"; print "Test suite from stdin\n";