f338ef
From 427dab431f7e8c4c8a01e9e9ed0892708a3d22d2 Mon Sep 17 00:00:00 2001
f338ef
From: Atin Mukherjee <amukherj@redhat.com>
f338ef
Date: Mon, 5 Aug 2019 08:33:29 +0530
f338ef
Subject: [PATCH 263/265] tests: fix ctime related tests
f338ef
f338ef
With ctime being disabled by default, certain tests need to explicitly
f338ef
turn this option off to sanitize the functionality
f338ef
f338ef
Label: DOWNSTREAM ONLY
f338ef
f338ef
Change-Id: Id70310b4b09e36bf66756fea447186bb073b5604
f338ef
BUG: 1704562
f338ef
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
f338ef
Reviewed-on: https://code.engineering.redhat.com/gerrit/177704
f338ef
Tested-by: RHGS Build Bot <nigelb@redhat.com>
f338ef
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
f338ef
---
f338ef
 tests/basic/ctime/ctime-noatime.t | 1 +
f338ef
 tests/basic/ctime/ctime-readdir.t | 1 +
f338ef
 tests/bugs/glusterd/bug-1696046.t | 8 +++++---
f338ef
 3 files changed, 7 insertions(+), 3 deletions(-)
f338ef
f338ef
diff --git a/tests/basic/ctime/ctime-noatime.t b/tests/basic/ctime/ctime-noatime.t
f338ef
index 609ccbd..a6c8d9c 100644
f338ef
--- a/tests/basic/ctime/ctime-noatime.t
f338ef
+++ b/tests/basic/ctime/ctime-noatime.t
f338ef
@@ -20,6 +20,7 @@ function atime_compare {
f338ef
 TEST glusterd
f338ef
 TEST pidof glusterd
f338ef
 TEST $CLI volume create $V0 replica 3 $H0:$B0/${V0}{0,1,2}
f338ef
+TEST $CLI volume set $V0 ctime on
f338ef
 TEST $CLI volume set $V0 performance.stat-prefetch off
f338ef
 TEST $CLI volume set $V0 performance.read-ahead off
f338ef
 TEST $CLI volume set $V0 performance.quick-read off
f338ef
diff --git a/tests/basic/ctime/ctime-readdir.t b/tests/basic/ctime/ctime-readdir.t
f338ef
index 4564fc1..fa069b3 100644
f338ef
--- a/tests/basic/ctime/ctime-readdir.t
f338ef
+++ b/tests/basic/ctime/ctime-readdir.t
f338ef
@@ -9,6 +9,7 @@ TEST glusterd
f338ef
 
f338ef
 TEST $CLI volume create $V0 replica 3 ${H0}:$B0/brick{1,2,3};
f338ef
 TEST $CLI volume set $V0 performance.stat-prefetch on
f338ef
+TEST $CLI volume set $V0 ctime on
f338ef
 TEST $CLI volume set $V0 performance.readdir-ahead off
f338ef
 TEST $CLI volume start $V0;
f338ef
 
f338ef
diff --git a/tests/bugs/glusterd/bug-1696046.t b/tests/bugs/glusterd/bug-1696046.t
f338ef
index e1c1eb2..f7992f5 100644
f338ef
--- a/tests/bugs/glusterd/bug-1696046.t
f338ef
+++ b/tests/bugs/glusterd/bug-1696046.t
f338ef
@@ -22,6 +22,8 @@ TEST pidof glusterd;
f338ef
 TEST $CLI volume set all cluster.brick-multiplex on
f338ef
 TEST $CLI volume create $V0 replica 3 $H0:$B0/${V0}{1,2,3};
f338ef
 TEST $CLI volume create $V1 replica 3 $H0:$B0/${V1}{1,2,3};
f338ef
+TEST $CLI volume set $V0 ctime on
f338ef
+TEST $CLI volume set $V1 ctime on
f338ef
 
f338ef
 ## Start volume and verify
f338ef
 TEST $CLI volume start $V0;
f338ef
@@ -64,9 +66,9 @@ TEST $CLI volume set $V0 diagnostics.brick-log-level DEBUG
f338ef
 # Do some operation
f338ef
 touch $M0/file1
f338ef
 
f338ef
-# Check debug message debug message should be exist only for V0
f338ef
-# Server xlator is common in brick_mux so after enabling DEBUG log
f338ef
-# some debug message should be available for other xlators like posix
f338ef
+# Check debug message should exist only for V0 server xlator is common in
f338ef
+# brick_mux so after enabling DEBUG log some debug message should be available
f338ef
+# for other xlators like posix
f338ef
 
f338ef
 brick_log_file=$logdir"/bricks/"`brick-log-file-name`
f338ef
 nofdlog=$(cat $brick_log_file | grep file1 | grep -v server | wc -l)
f338ef
-- 
f338ef
1.8.3.1
f338ef