From 5f0f2282d6e00a1de209a04c8270ee6cd8150d8b Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Thu, 6 Nov 2014 14:32:57 +0100 Subject: Regression test portability: batch of bugs (volume 1) Fix various regression test portability in tests/bugs. bug-1004744.t: - Slower systems really requires an increased REBALANCE_TIMEOUT in include.rc bug-1023974.t: - use the -p option to mkdir before the path for portability sake. bug-1051896.t and bug-847622.t: - skip ACL test for NetBSD as it has no POSIX 1e ACL support. bugs-1053579.t: - Override the amount of secondary groups depending of the maximum the system supports. - Specify seq(1) format to avoid having trailing .00 - Use more portable su -m USER -c COMMAND (also in bug-884597.t) - NetBSD does not fail high GID with NFS bug-1058663.c: - Depending on architecture, NetBSD can have SIGSEGV instead of SIGBUS bug-762989.t and bug-867253.t: - For non Linux systems, skip tests on features that are Linux-specific bug-765473.t; - Fix a {1} that bash is supposed to expand in 1 but does not, replace by 1. - Sync volume to make sure it imediatly knows a fd got bad BUG: 1129939 Change-Id: I5405f94ccb8f20d35b3095096b0602c43719a1ae Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.org/9009 Reviewed-by: Xavier Hernandez Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY Reviewed-by: Vijay Bellur --- tests/bugs/bug-765473.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/bugs/bug-765473.t') diff --git a/tests/bugs/bug-765473.t b/tests/bugs/bug-765473.t index d9af751f472..cf2588256f4 100755 --- a/tests/bugs/bug-765473.t +++ b/tests/bugs/bug-765473.t @@ -15,7 +15,7 @@ function clients_connected() ## Start and create a volume TEST glusterd; TEST pidof glusterd; -TEST $CLI volume create $V0 $H0:$B0/${V0}{1} +TEST $CLI volume create $V0 $H0:$B0/${V0}1 TEST $CLI volume start $V0; TEST glusterfs --direct-io-mode=yes --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0; @@ -26,7 +26,9 @@ TEST fd_write $fd "content" TEST $CLI volume stop $V0 # write some content which will result in marking fd bad fd_write $fd "more content" +sync $V0 TEST $CLI volume start $V0 +EXPECT 'Started' volinfo_field $V0 'Status'; EXPECT_WITHIN $PROCESS_UP_TIMEOUT 2 clients_connected $V0 TEST ! fd_write $fd "still more content" -- cgit