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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \ | 82 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \ |
83 tarball | 83 tarball |
84 ln -s \ | 84 ln -s \ |
85 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball | 85 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/html" tarball |
86 ln -s autotest/client/site_tests/suite_HWQual/manual \ | 86 ln -s autotest/client/site_tests/suite_HWQual/manual \ |
87 "tarball/${FLAGS_output_tag}" | 87 "tarball/${FLAGS_output_tag}" |
88 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ | 88 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ |
89 "tarball/${FLAGS_output_tag}" | 89 "tarball/${FLAGS_output_tag}" |
90 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" | 90 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" |
91 mv autotest "tarball/${FLAGS_output_tag}" | 91 mv autotest "tarball/${FLAGS_output_tag}" |
92 cp "${script_dir}/generate_test_report" "tarball/${FLAGS_output_tag}" | 92 cp "${script_dir}/generate_test_report.py" \ |
| 93 "tarball/${FLAGS_output_tag}/generate_test_report" |
93 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." | 94 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." |
94 mkdir -p "${FLAGS_to}" | 95 mkdir -p "${FLAGS_to}" |
95 cd tarball | 96 cd tarball |
96 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . | 97 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . |
97 | 98 |
98 trap - EXIT | 99 trap - EXIT |
99 cleanup | 100 cleanup |
100 | 101 |
101 echo "Done." | 102 echo "Done." |
102 cd "${script_dir}" | 103 cd "${script_dir}" |
103 } | 104 } |
104 | 105 |
105 main "$@" | 106 main "$@" |
OLD | NEW |