[crosperf] Separate output for different compilers.

Currently the rotating nightly tester is writing all the test output
to the same directory, based on board name, so the GCC & LLVM output
files for a particular are overwriting each other.  This CL puts
the GCC & LLVM output into different directories so that won't happen.

BUG=None
TEST=None

Change-Id: Ifc564a51bd0f44c9a701805975cbb64325074aab
Reviewed-on: https://chrome-internal-review.googlesource.com/268335
Commit-Ready: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Ting-Yuan Huang <laszio@google.com>
diff --git a/buildbot_test_llvm.py b/buildbot_test_llvm.py
index 036867b..02c991b 100755
--- a/buildbot_test_llvm.py
+++ b/buildbot_test_llvm.py
@@ -83,7 +83,7 @@
       self._weekday = time.strftime('%a')
     else:
       self._weekday = weekday
-    self._reports = os.path.join(VALIDATION_RESULT_DIR, board)
+    self._reports = os.path.join(VALIDATION_RESULT_DIR, compiler, board)
 
   def _FinishSetup(self):
     """Make sure testing_rsa file is properly set up."""
@@ -145,7 +145,7 @@
   results = ""
   for i in range(len(TEST_BOARD)):
     board = TEST_BOARD[(start_board + i) % len(TEST_BOARD)]
-    f = os.path.join(VALIDATION_RESULT_DIR, board)
+    f = os.path.join(VALIDATION_RESULT_DIR, compiler, board)
     if not os.path.exists(f):
       continue
     results += board
@@ -155,7 +155,7 @@
       read_data = readin.read()
       results += read_data
 
-  output = os.path.join(VALIDATION_RESULT_DIR, "result")
+  output = os.path.join(VALIDATION_RESULT_DIR, compiler, "result")
   with open(output, 'w') as out:
     out.write(results)
 
@@ -223,7 +223,7 @@
                              options.weekday, patches, options.compiler)
       fv.DoAll()
     except SystemExit:
-      logfile = os.path.join(VALIDATION_RESULT_DIR, board)
+      logfile = os.path.join(VALIDATION_RESULT_DIR, options.compiler, board)
       with open(logfile, 'w') as f:
         f.write("Verifier got an exception, please check the log.\n")