Tests: With --benchmark, don't time directory change.

This commit is contained in:
Wilson Snyder 2015-10-21 06:54:03 -04:00
parent cc22847bc3
commit b16ea8b719

View File

@ -928,7 +928,7 @@ sub _run {
my %param = (tee=>1,
@_);
my $command = join(' ',@{$param{cmd}});
$command = "time $command" if $opt_benchmark;
$command = "time $command" if $opt_benchmark && $command !~ /^cd /;
print "\t$command";
print " > $param{logfile}" if $param{logfile};
print "\n";