Mercurial > hg-stable
changeset 17092:5d0d99952494
tests: make rm of usercache in test-largefiles.t more robust
Recursive removal of a different path could be fatal - better avoid recursive
rm completely.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 03 Jul 2012 01:49:51 +0200 |
parents | f7a2849ef8cd |
children | cd8e109b673b |
files | tests/test-largefiles.t |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-largefiles.t Sun Jul 01 21:20:30 2012 -0500 +++ b/tests/test-largefiles.t Tue Jul 03 01:49:51 2012 +0200 @@ -1,5 +1,5 @@ $ USERCACHE="$TESTTMP/cache"; export USERCACHE - $ mkdir -p "${USERCACHE}" + $ mkdir "${USERCACHE}" $ cat >> $HGRCPATH <<EOF > [extensions] > largefiles= @@ -437,7 +437,7 @@ Test cloning with --all-largefiles flag - $ rm -Rf "${USERCACHE}"/* + $ rm "${USERCACHE}"/* $ hg clone --all-largefiles a a-backup updating to branch default 5 files updated, 0 files merged, 0 files removed, 0 files unresolved @@ -461,7 +461,7 @@ 4 files updated, 0 files merged, 0 files removed, 0 files unresolved getting changed largefiles 2 largefiles updated, 0 removed - $ rm -Rf "${USERCACHE}"/* + $ rm "${USERCACHE}"/* $ cd a-backup $ hg pull --all-largefiles pulling from $TESTTMP/a (glob)