From dd7e5cf24412cd63854c86b36df6ae773df7fb62 Mon Sep 17 00:00:00 2001 From: David James Date: Wed, 5 Oct 2011 23:21:23 -0700 Subject: [PATCH] rm -rf /does/not/exist to fix metrics unit tests. BUG=none TEST=Metrics unit tests work now. Change-Id: If5830c17bbd2f389df3c390fb0de7057b05aa9aa Reviewed-on: http://gerrit.chromium.org/gerrit/8845 Reviewed-by: David James Tested-by: David James --- chroot_version_hooks.d/11_rm_bad_directory | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 chroot_version_hooks.d/11_rm_bad_directory diff --git a/chroot_version_hooks.d/11_rm_bad_directory b/chroot_version_hooks.d/11_rm_bad_directory new file mode 100644 index 0000000000..1ac1fce8d2 --- /dev/null +++ b/chroot_version_hooks.d/11_rm_bad_directory @@ -0,0 +1,8 @@ +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# 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 +# directory not existing. +sudo rm -rf /does/not/exist +exit 0