From 45603a026f1767bcef1df4d3a85ad7dbff76f968 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Sun, 20 Sep 2009 14:17:34 -0500 Subject: [PATCH] fix Storage tests for limited permissions --- t/Storage.t | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/t/Storage.t b/t/Storage.t index 676462320..2a4a3840a 100644 --- a/t/Storage.t +++ b/t/Storage.t @@ -519,12 +519,15 @@ is ($privs, "3\n3\n3", '... correct group contents, deep storage subdir'); # #################################################### +my $cdnTestPath = File::Temp::tempdir(); +my $cdnQueueTestPath = File::Temp::tempdir(); + my $cdnCfg = { "enabled" => 1, - "url" => "file:///data/storage", - "queuePath" => "/data/cdnqueue", - "syncProgram" => "cp -r -- '%s' /data/storage/", - "deleteProgram" => "rm -r -- '/data/storage/%s' > /dev/null 2>&1" + "url" => "file://$cdnTestPath", + "queuePath" => $cdnQueueTestPath, + "syncProgram" => "cp -r -- '%s' $cdnTestPath/", + "deleteProgram" => "rm -r -- '$cdnTestPath/%s' > /dev/null 2>&1" }; my ($addedCdnQ, $addedCdnU); $addedCdnQ = mkdir $cdnCfg->{'queuePath'} unless -e $cdnCfg->{'queuePath'};