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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 echo "Inserting documentation and autotest to tarball..." | 67 echo "Inserting documentation and autotest to tarball..." |
68 ln -s \ | 68 ln -s \ |
69 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \ | 69 "${FLAGS_output_tag}/autotest/client/site_tests/suite_HWQual/README.txt" \ |
70 tarball | 70 tarball |
71 ln -s autotest/client/site_tests/suite_HWQual/manual \ | 71 ln -s autotest/client/site_tests/suite_HWQual/manual \ |
72 "tarball/${FLAGS_output_tag}" | 72 "tarball/${FLAGS_output_tag}" |
73 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ | 73 cp "${script_dir}/mod_for_test_scripts/ssh_keys/testing_rsa" \ |
74 "tarball/${FLAGS_output_tag}" | 74 "tarball/${FLAGS_output_tag}" |
75 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" | 75 chmod 0400 "tarball/${FLAGS_output_tag}/testing_rsa" |
76 mv autotest "tarball/${FLAGS_output_tag}" | 76 mv autotest "tarball/${FLAGS_output_tag}" |
| 77 cp "${script_dir}/generate_test_report" "tarball/${FLAGS_output_tag}" |
77 | 78 |
78 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." | 79 echo "Creating ${FLAGS_to}/${FLAGS_output_tag}.tar.bz2..." |
79 mkdir -p "${FLAGS_to}" | 80 mkdir -p "${FLAGS_to}" |
80 cd tarball | 81 cd tarball |
81 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . | 82 tar --bzip2 -cf "${FLAGS_to}/${FLAGS_output_tag}.tar.bz2" . |
82 | 83 |
83 trap - EXIT | 84 trap - EXIT |
84 cleanup | 85 cleanup |
85 | 86 |
86 echo "Done." | 87 echo "Done." |
87 cd "${script_dir}" | 88 cd "${script_dir}" |
88 } | 89 } |
89 | 90 |
90 main "$@" | 91 main "$@" |
OLD | NEW |