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 # 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 Loading... |
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 "$@" |
OLD | NEW |