Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
887939c3
Commit
887939c3
authored
Oct 22, 2021
by
Francesc Guasch
Browse files
test: fixed non-root test for storage
parent
16b72eb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/vm/s30_storage.t
View file @
887939c3
...
...
@@ -12,6 +12,7 @@ use feature qw(signatures);
use
lib
'
t/lib
';
use
Test::
Ravada
;
my
$DIR
=
"
/var/tmp
";
###########################################################
...
...
@@ -31,7 +32,7 @@ sub test_storage_pools($vm) {
}
sub
_add_fstab
($vm) {
my
$dir
=
"
/mnt
/
"
.
base_domain_name
();
my
$dir
=
"
$DIR
/
"
.
base_domain_name
();
if
(
!-
e
$dir
)
{
mkdir
$dir
;
}
...
...
@@ -79,7 +80,7 @@ sub test_storage_pools_fail($vm) {
}
sub
_clean_local
{
my
$dir
=
"
/mnt
/
"
.
base_domain_name
();
my
$dir
=
"
$DIR
/
"
.
base_domain_name
();
my
$file
=
"
$dir
/check_storage
";
# or die "$!";
unlink
$file
or
die
"
$!
$file
"
if
-
e
$file
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment