diff options
author | Denis Nikitin <denik@google.com> | 2020-10-06 11:31:25 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-07 00:09:41 +0000 |
commit | 92d7005475c73345f1367892d4e28c618137ffc5 (patch) | |
tree | fae9df4cd5984741b213273562fdd660308d4911 | |
parent | d8187c7c4ba1296034498fc657aef0e032e2a96f (diff) | |
download | toolchain-utils-92d7005475c73345f1367892d4e28c618137ffc5.tar.gz |
toolchain-utils: create pending_archives if needed
The change fixes the following error happening after migration to a new
chrotomation:
cp: cannot create regular file '/usr/local/google/crostc/pending_archives/.': No such file or directory
Traceback (most recent call last):
...
File "./buildbot_test_toolchains.py", line 259, in _CopyJson
raise RuntimeError(
RuntimeError: Crosperf failed to run tests, cannot copy json report!
BUG=None
TEST=To be tested on chrotomation.mtv.
Change-Id: I4de2bb1ec816fa6d9e98993d6da1b6bded34b1f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2453594
Commit-Queue: Denis Nikitin <denik@chromium.org>
Tested-by: Denis Nikitin <denik@chromium.org>
Reviewed-by: George Burgess <gbiv@chromium.org>
-rwxr-xr-x | buildbot_test_toolchains.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py index e4784a62..48987966 100755 --- a/buildbot_test_toolchains.py +++ b/buildbot_test_toolchains.py @@ -250,6 +250,8 @@ class ToolchainComparator(object): self._ce.RunCommand(command) def _CopyJson(self): + # Make sure a destination directory exists. + os.makedirs(PENDING_ARCHIVES_DIR, exist_ok=True) # Copy json report to pending archives directory. command = 'cp %s/*.json %s/.' % (self._reports_dir, PENDING_ARCHIVES_DIR) ret = self._ce.RunCommand(command) |