From: Michael Stapelberg Date: Tue, 4 Oct 2011 19:03:08 +0000 (+0100) Subject: tests: eliminate dependency on the DateTime module by using POSIX::strftime X-Git-Tag: 4.1~122^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa65b721b889679f69fab62bfc49387b4da1678f;p=i3%2Fi3 tests: eliminate dependency on the DateTime module by using POSIX::strftime --- diff --git a/testcases/complete-run.pl b/testcases/complete-run.pl index aa32557d..04130ec8 100755 --- a/testcases/complete-run.pl +++ b/testcases/complete-run.pl @@ -16,7 +16,6 @@ use AnyEvent; use IO::Scalar; # not in core :\ use File::Temp qw(tempfile tempdir); use v5.10; -use DateTime; use Data::Dumper; use Cwd qw(abs_path); use Proc::Background; @@ -86,7 +85,7 @@ my @testfiles = @ARGV; # 2: create an output directory for this test-run 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`; chomp($outdir); mkdir($outdir) or die "Could not create $outdir";