Whamcloud - gitweb
b21012 conf-sanity test_52: @@@@@@ FAIL: Unable to tar files
authorRahul Deshmukh <Rahul.Deshmukh@sun.com>
Mon, 6 Sep 2010 09:22:10 +0000 (13:22 +0400)
committerMikhail Pershin <tappro@sun.com>
Mon, 6 Sep 2010 19:26:46 +0000 (23:26 +0400)
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

index 24bdbc9..ab75fb5 100644 (file)
@@ -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