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