fix Storage tests for limited permissions
This commit is contained in:
parent
3ff88580e8
commit
45603a026f
1 changed files with 7 additions and 4 deletions
11
t/Storage.t
11
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'};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue