Browse Source

Merge pull request #2321 from ashawnbandy-te-tfb/45216-continuousbenchmarks-keepraw-20161024-asb-1

45216 continuousbenchmarks keepraw 20161024 asb 1
Mike Smith 8 years ago
parent
commit
85dc6cc833
2 changed files with 6 additions and 1 deletions
  1. 5 0
      toolset/lifecycle/post-run-tests/keep-logs.py
  2. 1 1
      toolset/run-continuously.sh

+ 5 - 0
toolset/lifecycle/post-run-tests/keep-logs.py

@@ -7,6 +7,7 @@
 import os
 import os
 import zipfile
 import zipfile
 import datetime
 import datetime
+import shutil
 # Follows closely from:
 # Follows closely from:
 # http://stackoverflow.com/a/34153816
 # http://stackoverflow.com/a/34153816
 #
 #
@@ -37,3 +38,7 @@ for folder in os.listdir(path_in):
         print "An OSError occurred while writing to a log zip file for {0}: \
         print "An OSError occurred while writing to a log zip file for {0}: \
             {1}".format(file, err)
             {1}".format(file, err)
   zip_file.close()
   zip_file.close()
+path_results_in = os.path.abspath(os.path.normpath(os.path.expanduser(os.path.join( \
+    os.environ['TFB_REPOPARENT'], os.environ['TFB_REPONAME'], \
+    'results'))))
+shutil.copytree(path_results_in, path_out + '/results')

+ 1 - 1
toolset/run-continuously.sh

@@ -44,7 +44,7 @@ do
   echo Change to benchmark root
   echo Change to benchmark root
   cd $TFB_REPOPARENT/$TFB_REPONAME
   cd $TFB_REPOPARENT/$TFB_REPONAME
   echo Run tests
   echo Run tests
-  toolset/run-tests.py --clear-tmp
+  toolset/run-tests.py
   # Handle any postprocessing
   # Handle any postprocessing
   echo Running post-test tasks
   echo Running post-test tasks
   for SCRIPT in $TFB_REPOPARENT/$TFB_REPONAME/toolset/lifecycle/post-run-tests/*
   for SCRIPT in $TFB_REPOPARENT/$TFB_REPONAME/toolset/lifecycle/post-run-tests/*