Browse Source

45216: Only run gemini and netty for testing.

A. Shawn Bandy 8 years ago
parent
commit
52d6378602
2 changed files with 21 additions and 1 deletions
  1. 20 0
      toolset/lifecycle/post-run-tests/keep-logs.py
  2. 1 1
      toolset/run-continuously.sh

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

@@ -37,3 +37,23 @@ 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__raw_in = os.path.abspath(os.path.normpath(os.path.expanduser(os.path.join( \
+    os.environ['TFB_REPOPARENT'], os.environ['TFB_REPONAME'], \
+    'results/2*'))))
+for folder in os.listdir(path_raw_in):
+  if not os.path.exists(path_out):
+    os.makedirs(path_out)
+  zip_file = zipfile.ZipFile(path_out + '/' + folder + '.zip', 'w')
+# ... walk the folder structure ...
+  for root, directories, files in os.walk(os.path.join(path_raw_in, folder), 'w', \
+        zipfile.ZIP_DEFLATED):
+# ... and add to the zip file.   
+    for file in files:
+      try:
+        zip_file.write(os.path.abspath(os.path.join(root, file)), \
+            arcname=file)
+      except OSError as err:
+        print "An OSError occurred while writing to a log zip file for {0}: \
+            {1}".format(file, err)
+  zip_file.close()
+

+ 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 --test gemini netty
   # 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/*