Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/scripts/archive_hwqual

Issue 1711005: Fix name of test image from autotest archive. (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to take an archived build result and prepare a hwqual release. 7 # Script to take an archived build result and prepare a hwqual release.
8 8
9 # Load common constants. This should be the first executable line. 9 # Load common constants. This should be the first executable line.
10 # The path to common.sh should be relative to your script's location. 10 # The path to common.sh should be relative to your script's location.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 cd "${TMP}" 51 cd "${TMP}"
52 52
53 echo "Extracting build artifacts..." 53 echo "Extracting build artifacts..."
54 unzip "${FLAGS_from}/${FLAGS_zipname}" 54 unzip "${FLAGS_from}/${FLAGS_zipname}"
55 mkdir -p image 55 mkdir -p image
56 mkdir -p "tarball/${FLAGS_output_tag}" 56 mkdir -p "tarball/${FLAGS_output_tag}"
57 57
58 echo "Extracting autotest from build artifacts..." 58 echo "Extracting autotest from build artifacts..."
59 tar --bzip2 -xf autotest.tar.bz2 59 tar --bzip2 -xf autotest.tar.bz2
60 mv rootfs_test.image image/rootfs.image 60 mv chromiumos_test_image.bin image/chromiumos_image.bin
61 mv mbr.image image
62 61
63 echo "Formatting rootfs as a USB image..." 62 echo "Formatting rootfs as a USB image..."
64 "${script_dir}/image_to_usb.sh" --from=image \ 63 "${script_dir}/image_to_usb.sh" --from=image \
65 --to="tarball/${FLAGS_output_tag}/chromeos-hwqual-usb.img" 64 --to="tarball/${FLAGS_output_tag}/chromeos-hwqual-usb.img"
66 65
67 echo "Inserting documentation and autotest to tarball..." 66 echo "Inserting documentation and autotest to tarball..."
68 ln -s \ 67 ln -s \
69 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \ 68 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \
70 tarball 69 tarball
71 ln -s autotest/client/site_tests/suite_HWQual/manual \ 70 ln -s autotest/client/site_tests/suite_HWQual/manual \
(...skipping 10 matching lines...) Expand all
82 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . 81 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" .
83 82
84 trap - EXIT 83 trap - EXIT
85 cleanup 84 cleanup
86 85
87 echo "Done." 86 echo "Done."
88 cd "${script_dir}" 87 cd "${script_dir}"
89 } 88 }
90 89
91 main "$@" 90 main "$@"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698