From df9f1cd96854c82338c62897d788319b560e43ad Mon Sep 17 00:00:00 2001 From: vmallika Date: Thu, 19 Feb 2015 17:54:03 +0530 Subject: Fix for test usst.t and bug-1167580-set-proper-uid-and-gid-during-nfs-access.t testcase usst.t and bug-1167580-set-proper-uid-and-gid-during-nfs-access.t uses below method to generate random string cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 8 | head -n 1 Doing a cat on /dev/urandom can consume more CPU usage. Change to: uuidgen | tr -dc 'a-zA-Z' | head -c 8 Change-Id: I9cb562557ae860026fb5e140ed9b5e297b4428d9 BUG: 1163543 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/9703 Reviewed-by: Niels de Vos Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- tests/basic/uss.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/basic') diff --git a/tests/basic/uss.t b/tests/basic/uss.t index 2e4286860cf..2de66a97f48 100644 --- a/tests/basic/uss.t +++ b/tests/basic/uss.t @@ -65,7 +65,7 @@ TEST $CLI snapshot create snap4 $V0; ## Test that features.uss takes only options enable/disable and throw error for ## any other argument. for i in {1..10}; do - RANDOM_STRING=`cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 8 | head -n 1` + RANDOM_STRING=$(uuidgen | tr -dc 'a-zA-Z' | head -c 8) TEST_IN_LOOP ! $CLI volume set $V0 features.uss $RANDOM_STRING done -- cgit