From: Rahul Deshmukh Date: Mon, 6 Sep 2010 09:22:10 +0000 (+0400) Subject: b21012 conf-sanity test_52: @@@@@@ FAIL: Unable to tar files X-Git-Tag: 2.0.51.0~9 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;ds=sidebyside;h=718aa78a4cf0125caccd50deb3d159effd620199;p=fs%2Flustre-release.git 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 --- 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