]> iEval git - gruntmaster-daemon.git/commitdiff
Use getcwd instead of cwd
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 30 Jan 2015 10:26:00 +0000 (12:26 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 30 Jan 2015 10:26:00 +0000 (12:26 +0200)
t/01-jobs.t

index aa715e14fd8028a4e81de5c5a24df7a5d961562f..742a79780f603521bc23bd9556534065157ca4b7 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 
 use Gruntmaster::Daemon;
 
-use Cwd qw/cwd/;
+use Cwd qw/getcwd/;
 use File::Basename qw/fileparse/;
 use File::Slurp qw/read_file/;
 use File::Temp qw/tempdir/;
@@ -40,7 +40,7 @@ log4perl.appender.stderr.layout.ConversionPattern = [\%d] [\%F{1}:\%M{1}:\%L] [\
 CONF
 Log::Log4perl->init(\$log_conf);
 
-$ENV{PATH} = cwd . ':' . $ENV{PATH};
+$ENV{PATH} = getcwd . ':' . $ENV{PATH};
 umask 0022;
 
 sub check_job{
@@ -87,7 +87,7 @@ for my $problem (@problems) {
                                $meta->{files}{prog}{content} = read_file "$source/$meta->{files}{prog}{name}";
                                $meta = merge $meta, $pbmeta;
                                note "Running $meta->{test_name} ($meta->{test_description})...";
-                               my $savedcwd = cwd;
+                               my $savedcwd = getcwd;
                                chdir $tempdir;
                                Gruntmaster::Daemon::process $meta;
                                chdir $savedcwd;
This page took 0.03412 seconds and 4 git commands to generate.