Only tar chromiumos_test_image.bin file, instead of all files under images directory.
Change-Id: I27ca96a5e347de6d2e5ae280cfd37a7669056679
Reviewed-on: https://chrome-internal-review.googlesource.com/199736
Reviewed-by: Caroline Tice <cmtice@google.com>
Commit-Queue: Han Shen <shenhan@google.com>
Tested-by: Han Shen <shenhan@google.com>
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py
index d3b2300..3254c93 100755
--- a/buildbot_test_toolchains.py
+++ b/buildbot_test_toolchains.py
@@ -166,11 +166,12 @@
else:
test_path = vanilla_image
tar_file_name = "%s_%s_image.tar" % (self._weekday, label_name)
- cmd = "cd %s; tar -cvf %s %s/*; cp %s %s/." % (images_path,
- tar_file_name,
- test_path,
- tar_file_name,
- dest_dir)
+ cmd = ("cd %s; tar -cvf %s %s/chromiumos_test_image.bin; "
+ "cp %s %s/.") % (images_path,
+ tar_file_name,
+ test_path,
+ tar_file_name,
+ dest_dir)
if dry_run:
print "CMD: %s" % cmd
tar_ret = 0
@@ -189,7 +190,9 @@
crosperf, and copy images into seven-day report directories.
"""
date_str = datetime.date.today()
- description = "master_%s_%s_%s" % (USE_NEXT_GCC_PATCH, self._build, date_str)
+ description = "master_%s_%s_%s" % (USE_NEXT_GCC_PATCH,
+ self._build,
+ date_str)
trybot_image = buildbot_utils.GetTrybotImage(self._chromeos_root,
self._build,
[ USE_NEXT_GCC_PATCH ],
diff --git a/test_toolchains.py b/test_toolchains.py
index 578312e..58629c4 100755
--- a/test_toolchains.py
+++ b/test_toolchains.py
@@ -264,10 +264,11 @@
else:
label_name = "vanilla"
tar_file_name = "%s_%s_image.tar" % (weekday, label_name)
- cmd = "cd %s; tar -cvf %s %s/*; cp %s %s/." % (images_path,
- tar_file_name,
- l, tar_file_name,
- dest_dir)
+ cmd = ("cd %s; tar -cvf %s %s/chromiumos_test_image.bin; "
+ "cp %s %s/.") % (images_path,
+ tar_file_name,
+ l, tar_file_name,
+ dest_dir)
tar_ret = self._ce.RunCommand(cmd)
if tar_ret:
self._l.LogOutput("Error while creating/copying test tar file(%s)."