From c801b10af3e30602f31fc873c0484232d2266d81 Mon Sep 17 00:00:00 2001 From: David James Date: Wed, 5 Oct 2011 23:21:23 -0700 Subject: [PATCH] Actually rm -rf /does/not instead to fix metrics unit tests. Metrics unit tests fail if /does/not directory is present, so we need to clean this up as a followup to a build_packages fix that stopped creating that directory. BUG=none TEST=Metrics unit tests actually work now. Change-Id: I7c470e8225e4c5c7a77f6decc4c4bcadb72cd246 Reviewed-on: http://gerrit.chromium.org/gerrit/8848 Reviewed-by: David James Tested-by: David James --- chroot_version_hooks.d/11_rm_bad_directory | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chroot_version_hooks.d/11_rm_bad_directory b/chroot_version_hooks.d/11_rm_bad_directory index 1ac1fce8d2..e540f6e752 100644 --- a/chroot_version_hooks.d/11_rm_bad_directory +++ b/chroot_version_hooks.d/11_rm_bad_directory @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -# Delete /does/not/exist to fix metrics unit test, which depends on this +# Delete /does/not to fix metrics unit test, which depends on this # directory not existing. -sudo rm -rf /does/not/exist +sudo rm -rf /does/not exit 0