remove packages.checksum files after autotest_quickmerge
This CL causes autotest_quickmerge to remove 2 packages.checksum files,
which were causing certain tests to have their stale packaged version
retained on the DUT even after a quickmerge, and thus not having test
changes reflected in run_remote_tests.
BUG=chromium:237235
TEST=`./build_packages`
`run_remote_tests --use_emerged --remote=<remote> --board=lumpy
login_OwnershipApi` # passes
Edit loginOwnershipApi.py so that it fails immediately.
autotest_quickmerge --board=lumpy
Repeat run_remote_tests command. Test fails as expected.
Change-Id: Ic68b373a37da025c3bc52b9e9dbf9c869c09d62d
Reviewed-on: https://gerrit.chromium.org/gerrit/49782
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
diff --git a/scripts/autotest_quickmerge.py b/scripts/autotest_quickmerge.py
index f8e970f..d39d899 100644
--- a/scripts/autotest_quickmerge.py
+++ b/scripts/autotest_quickmerge.py
@@ -343,6 +343,9 @@
change_report.new_files + change_report.modified_files,
sysroot_autotest_path)
RemoveTestPackages(stale_packages, sysroot_autotest_path)
+ osutils.SafeUnlink(os.path.join(sysroot_autotest_path, 'packages.checksum'))
+ osutils.SafeUnlink(os.path.join(sysroot_autotest_path, 'packages',
+ 'packages.checksum'))
if args.pretend:
logging.info('The following message is pretend only. No filesystem '