tests: eliminate dependency on the DateTime module by using POSIX::strftime

This commit is contained in:
Michael Stapelberg 2011-10-04 20:03:08 +01:00
parent 20d6ae4110
commit aa65b721b8
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@ use AnyEvent;
use IO::Scalar; # not in core :\ use IO::Scalar; # not in core :\
use File::Temp qw(tempfile tempdir); use File::Temp qw(tempfile tempdir);
use v5.10; use v5.10;
use DateTime;
use Data::Dumper; use Data::Dumper;
use Cwd qw(abs_path); use Cwd qw(abs_path);
use Proc::Background; use Proc::Background;
@ -86,7 +85,7 @@ my @testfiles = @ARGV;
# 2: create an output directory for this test-run # 2: create an output directory for this test-run
my $outdir = "testsuite-"; my $outdir = "testsuite-";
$outdir .= DateTime->now->strftime("%Y-%m-%d-%H-%M-%S-"); $outdir .= POSIX::strftime("%Y-%m-%d-%H-%M-%S-", localtime());
$outdir .= `git describe --tags`; $outdir .= `git describe --tags`;
chomp($outdir); chomp($outdir);
mkdir($outdir) or die "Could not create $outdir"; mkdir($outdir) or die "Could not create $outdir";