summaryrefslogtreecommitdiffstats
path: root/tests/basic
diff options
context:
space:
mode:
authorXavier Hernandez <xhernandez@datalab.es>2014-07-15 18:43:44 +0200
committerVijay Bellur <vbellur@redhat.com>2014-08-01 23:48:47 -0700
commitd9fbc8518962c8607cc741626c2e197098e749b5 (patch)
tree36368e52369190ad92aa20ab5cb0b3a90c482972 /tests/basic
parent410c15a1fb1b9f1cfaa5ee315b9ca39e27c04ec8 (diff)
ec: Test volume mount point in a better way
An 'ls -a1' on an empty volume seems to return 3 entries instead of the expected 2 ('.' and '..') in the build servers. I changed the test to a simple 'stat', which is enough and more reliable. Change-Id: I12d0f47394ad378b40fc9b86507cdb3543f99970 Signed-off-by: Xavier Hernandez <xhernandez@datalab.es> Reviewed-on: http://review.gluster.org/8313 Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/ec/ec-common2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic/ec/ec-common b/tests/basic/ec/ec-common
index 95f53f250bc..b52fecbd9a9 100644
--- a/tests/basic/ec/ec-common
+++ b/tests/basic/ec/ec-common
@@ -49,7 +49,7 @@ for idx in `seq 0 $LAST_BRICK`; do
done
cd $M0
-EXPECT "2" echo $(ls -a1 | wc -l)
+TEST stat .
TEST mkdir dir1
TEST [ -d dir1 ]
TEST touch file1