| OLD | NEW |
| 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 # --- BEGIN COMMON.SH BOILERPLATE --- | 9 # --- BEGIN COMMON.SH BOILERPLATE --- |
| 10 # Load common CrOS utilities. Inside the chroot this file is installed in | 10 # Load common CrOS utilities. Inside the chroot this file is installed in |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 ln -s \ | 111 ln -s \ |
| 112 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball | 112 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball |
| 113 ln -s autotest/client/site_tests/suite_HWQual/manual \ | 113 ln -s autotest/client/site_tests/suite_HWQual/manual \ |
| 114 "tarball/${FLAGS_output_tag}" | 114 "tarball/${FLAGS_output_tag}" |
| 115 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ | 115 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ |
| 116 "tarball/${FLAGS_output_tag}" | 116 "tarball/${FLAGS_output_tag}" |
| 117 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" | 117 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" |
| 118 mv autotest "tarball/${FLAGS_output_tag}" | 118 mv autotest "tarball/${FLAGS_output_tag}" |
| 119 # Copy call_autoserv.py to tarball. | 119 # Copy call_autoserv.py to tarball. |
| 120 cp "${script_dir}/call_autoserv.py" "tarball/${FLAGS_output_tag}/." | 120 cp "${script_dir}/call_autoserv.py" "tarball/${FLAGS_output_tag}/." |
| 121 cp "${script_dir}/generate_test_report.py" \ | 121 cp "${script_dir}/generate_test_report" \ |
| 122 "tarball/${FLAGS_output_tag}/generate_test_report" | 122 "tarball/${FLAGS_output_tag}/generate_test_report" |
| 123 # Copy python lib used in generate_test_report. | 123 # Copy python lib used in generate_test_report. |
| 124 mkdir -p "tarball/${FLAGS_output_tag}/lib" | 124 mkdir -p "tarball/${FLAGS_output_tag}/lib" |
| 125 cp "${script_dir}/lib/cros_build_lib.py" \ | 125 cp "${script_dir}/lib/cros_build_lib.py" \ |
| 126 "tarball/${FLAGS_output_tag}/lib" | 126 "tarball/${FLAGS_output_tag}/lib" |
| 127 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." | 127 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." |
| 128 mkdir -p "${FLAGS_to}" | 128 mkdir -p "${FLAGS_to}" |
| 129 cd tarball | 129 cd tarball |
| 130 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . | 130 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . |
| 131 | 131 |
| 132 trap - EXIT | 132 trap - EXIT |
| 133 cleanup | 133 cleanup |
| 134 | 134 |
| 135 echo "Done." | 135 echo "Done." |
| 136 cd "${script_dir}" | 136 cd "${script_dir}" |
| 137 } | 137 } |
| 138 | 138 |
| 139 main "$@" | 139 main "$@" |
| OLD | NEW |