From 718aa78a4cf0125caccd50deb3d159effd620199 Mon Sep 17 00:00:00 2001 From: Rahul Deshmukh Date: Mon, 6 Sep 2010 13:22:10 +0400 Subject: [PATCH] b21012 conf-sanity test_52: @@@@@@ FAIL: Unable to tar files b21012 conf-sanity test_52: @@@@@@ FAIL: Unable to tar files Fixed timing problem of test_52 i=grev i=vladimir.saveliev --- lustre/tests/conf-sanity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 24bdbc9..ab75fb5 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -2206,7 +2206,9 @@ test_52() { [ $? -eq 0 ] || { error "Unable to create tdir"; return 4; } touch $TMP/modified_first [ $? -eq 0 ] || { error "Unable to create temporary file"; return 5; } - do_node $ost1node "mkdir -p $ost1tmp && touch $ost1tmp/modified_first" + local mtime=$(stat -c %Y $TMP/modified_first) + do_node $ost1node "mkdir -p $ost1tmp && touch -m -d @$mtime $ost1tmp/modified_first" + [ $? -eq 0 ] || { error "Unable to create temporary file"; return 6; } sleep 1 -- 1.8.3.1