]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: For teuthology copy logs to teuthology expected location 22702/head
authorDavid Zafman <dzafman@redhat.com>
Thu, 21 Jun 2018 00:04:50 +0000 (17:04 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 26 Jun 2018 01:06:01 +0000 (18:06 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/ceph-helpers.sh

index 2cae98bc5ff42db6e5fb7f5d618d10fc7acbd443..edb829d720015ba5e6291d54715c19b8498ee9c1 100755 (executable)
@@ -170,7 +170,13 @@ function teardown() {
         fi
     fi
     if [ "$cores" = "yes" -o "$dumplogs" = "1" ]; then
-        display_logs $dir
+       if [ -n "$LOCALRUN" ]; then
+           display_logs $dir
+        else
+           # Move logs to where Teuthology will archive it
+           sudo mkdir -p $TESTDIR/archive/log
+           sudo mv $dir/*.log $TESTDIR/archive/log
+       fi
     fi
     rm -fr $dir
     rm -rf $(get_asok_dir)