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

Side by Side Diff: archive_hwqual

Issue 6187006: Added HWQual utility script - call_script.py (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: changes to file permission Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | call_autoserv.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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \ 92 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \
93 tarball 93 tarball
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 # Copy call_autoserv.py to tarball.
103 cp "${script_dir}/call_autoserv.py" "tarball/${FLAGS_output_tag}/."
102 cp "${script_dir}/generate_test_report.py" \ 104 cp "${script_dir}/generate_test_report.py" \
103 "tarball/${FLAGS_output_tag}/generate_test_report" 105 "tarball/${FLAGS_output_tag}/generate_test_report"
104 # Copy python lib used in generate_test_report. 106 # Copy python lib used in generate_test_report.
105 mkdir -p "tarball/${FLAGS_output_tag}/lib" 107 mkdir -p "tarball/${FLAGS_output_tag}/lib"
106 cp "${script_dir}/lib/cros_build_lib.py" \ 108 cp "${script_dir}/lib/cros_build_lib.py" \
107 "tarball/${FLAGS_output_tag}/lib" 109 "tarball/${FLAGS_output_tag}/lib"
108 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." 110 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..."
109 mkdir -p "${FLAGS_to}" 111 mkdir -p "${FLAGS_to}"
110 cd tarball 112 cd tarball
111 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . 113 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" .
112 114
113 trap - EXIT 115 trap - EXIT
114 cleanup 116 cleanup
115 117
116 echo "Done." 118 echo "Done."
117 cd "${script_dir}" 119 cd "${script_dir}"
118 } 120 }
119 121
120 main "$@" 122 main "$@"
OLDNEW
« no previous file with comments | « no previous file | call_autoserv.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698