Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlaa Eddine Elamri <alaeddine.elamri@bareos.com>2022-07-29 15:03:59 +0300
committerPhilipp Storz <philipp.storz@bareos.com>2022-09-19 13:46:50 +0300
commit2e637506d250cbc0e7bc12f4f5e5998981c0da5e (patch)
tree61392e700980079341715ed470a0799c04f5fd7f
parentaf64d37e82ce70d74e7edc8a3a143746554e28bc (diff)
systemtest: fix gfapi systemtest sporadic fails
-rwxr-xr-xsystemtests/scripts/diff.pl.in4
-rwxr-xr-xsystemtests/tests/gfapi-fd/testrunner2
2 files changed, 3 insertions, 3 deletions
diff --git a/systemtests/scripts/diff.pl.in b/systemtests/scripts/diff.pl.in
index df0bdb474..058f38c5d 100755
--- a/systemtests/scripts/diff.pl.in
+++ b/systemtests/scripts/diff.pl.in
@@ -52,7 +52,7 @@ my $md5 = Digest::MD5->new;
my $dir = getcwd;
-chdir($src) or die "ERROR: Can't access to $src";
+chdir($src) or die "ERROR: Can't access to $src : $!";
$hash = \%src_attr;
find(\&wanted_src, '.');
@@ -63,7 +63,7 @@ if ($wattr) {
chdir ($dir);
-chdir($dst) or die "ERROR: Can't access to $dst";
+chdir($dst) or die "ERROR: Can't access to $dst : $!";
$hash = \%dst_attr;
find(\&wanted_src, '.');
diff --git a/systemtests/tests/gfapi-fd/testrunner b/systemtests/tests/gfapi-fd/testrunner
index 3e14f8ff6..c2d735919 100755
--- a/systemtests/tests/gfapi-fd/testrunner
+++ b/systemtests/tests/gfapi-fd/testrunner
@@ -35,7 +35,7 @@ while "${SUDO}" mount | grep "${tmp}/data" >/dev/null 2>&1; do
done
}
-
+trap umount_glusterfs EXIT
#shellcheck source=../scripts/functions
. "${rscripts}"/functions