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

Side by Side Diff: archive_hwqual

Issue 3266004: Move RunCommand, and Info/Warning/Die into common pylib (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: rebased Created 10 years, 3 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 | bin/cbuildbot.py » ('j') | 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 ln -s \ 94 ln -s \
95 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball 95 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball
96 ln -s autotest/client/site_tests/suite_HWQual/manual \ 96 ln -s autotest/client/site_tests/suite_HWQual/manual \
97 "tarball/${FLAGS_output_tag}" 97 "tarball/${FLAGS_output_tag}"
98 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ 98 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \
99 "tarball/${FLAGS_output_tag}" 99 "tarball/${FLAGS_output_tag}"
100 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" 100 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa"
101 mv autotest "tarball/${FLAGS_output_tag}" 101 mv autotest "tarball/${FLAGS_output_tag}"
102 cp "${script_dir}/generate_test_report.py" \ 102 cp "${script_dir}/generate_test_report.py" \
103 "tarball/${FLAGS_output_tag}/generate_test_report" 103 "tarball/${FLAGS_output_tag}/generate_test_report"
104 # Copy python lib used in generate_test_report.
105 mkdir -p "tarball/${FLAGS_output_tag}/lib"
106 cp "${script_dir}/lib/cros_build_lib.py" \
107 "tarball/${FLAGS_output_tag}/lib"
104 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." 108 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..."
105 mkdir -p "${FLAGS_to}" 109 mkdir -p "${FLAGS_to}"
106 cd tarball 110 cd tarball
107 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . 111 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" .
108 112
109 trap - EXIT 113 trap - EXIT
110 cleanup 114 cleanup
111 115
112 echo "Done." 116 echo "Done."
113 cd "${script_dir}" 117 cd "${script_dir}"
114 } 118 }
115 119
116 main "$@" 120 main "$@"
OLDNEW
« no previous file with comments | « no previous file | bin/cbuildbot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698