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

Side by Side Diff: bin/cros_au_test_harness.py

Issue 6532015: ReinterpretPathForChroot for public key (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 10 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2011 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 """This module runs a suite of Auto Update tests. 7 """This module runs a suite of Auto Update tests.
8 8
9 The tests can be run on either a virtual machine or actual device depending 9 The tests can be run on either a virtual machine or actual device depending
10 on parameters given. Specific tests can be run by invoking --test_prefix. 10 on parameters given. Specific tests can be run by invoking --test_prefix.
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 RunCommand(['./mount_gpt_image.sh', 960 RunCommand(['./mount_gpt_image.sh',
961 '--unmount', 961 '--unmount',
962 '--rootfs_mountpt=%s' % rootfs_dir, 962 '--rootfs_mountpt=%s' % rootfs_dir,
963 '--stateful_mountpt=%s' % stateful_dir, 963 '--stateful_mountpt=%s' % stateful_dir,
964 ], print_cmd=False, redirect_stdout=True, redirect_stderr=True, 964 ], print_cmd=False, redirect_stdout=True, redirect_stderr=True,
965 cwd=crosutils_dir) 965 cwd=crosutils_dir)
966 # Clean up our directories. 966 # Clean up our directories.
967 os.rmdir(rootfs_dir) 967 os.rmdir(rootfs_dir)
968 os.rmdir(stateful_dir) 968 os.rmdir(stateful_dir)
969 969
970 RunCommand(['bin/cros_make_image_bootable', from_dir, image, ], 970 RunCommand(['bin/cros_make_image_bootable',
971 ReinterpretPathForChroot(from_dir),
972 image],
971 print_cmd=False, redirect_stdout=True, redirect_stderr=True, 973 print_cmd=False, redirect_stdout=True, redirect_stderr=True,
972 enter_chroot=True, cwd=crosutils_dir) 974 enter_chroot=True, cwd=crosutils_dir)
973 975
974 976
975 def CleanPreviousWork(options): 977 def CleanPreviousWork(options):
976 """Cleans up previous work from the devserver cache and local image cache.""" 978 """Cleans up previous work from the devserver cache and local image cache."""
977 Info('Cleaning up previous work.') 979 Info('Cleaning up previous work.')
978 # Wipe devserver cache. 980 # Wipe devserver cache.
979 RunCommandCaptureOutput( 981 RunCommandCaptureOutput(
980 ['sudo', './start_devserver', '--clear_cache', '--exit', ], 982 ['sudo', './start_devserver', '--clear_cache', '--exit', ],
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 # Can't run in parallel with only one remote device. 1070 # Can't run in parallel with only one remote device.
1069 test_suite = _PrepareTestSuite(parser, options, test_class) 1071 test_suite = _PrepareTestSuite(parser, options, test_class)
1070 test_result = unittest.TextTestRunner(verbosity=2).run(test_suite) 1072 test_result = unittest.TextTestRunner(verbosity=2).run(test_suite)
1071 if not test_result.wasSuccessful(): Die('Test harness failed.') 1073 if not test_result.wasSuccessful(): Die('Test harness failed.')
1072 finally: 1074 finally:
1073 my_server.Stop() 1075 my_server.Stop()
1074 1076
1075 1077
1076 if __name__ == '__main__': 1078 if __name__ == '__main__':
1077 main() 1079 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698