From: Yung-Chin Oei Date: Tue, 13 Dec 2011 01:51:27 +0000 (-0600) Subject: Add test for "child named after parent" bug. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d5d1c8ae69284ad0363935400909bb6e6c98f245;p=packages%2Fb%2Fbup.git Add test for "child named after parent" bug. The added test shows that saving a node with the same name as the root of the tree fails. Changing Node.__cmp__() to compare by full paths should fix the problem. Signed-off-by: Yung-Chin Oei Reviewed-by: Rob Browning --- diff --git a/t/test.sh b/t/test.sh index 6058e44..7e1039f 100755 --- a/t/test.sh +++ b/t/test.sh @@ -228,6 +228,9 @@ WVSTART "save/git-fsck" WVSTART "restore" rm -rf buprestore.tmp WVFAIL bup restore boink +touch $TOP/$D/$D +bup index -u $TOP/$D +bup save -n master / WVPASS bup restore -C buprestore.tmp "/master/latest/$TOP/$D" WVPASSEQ "$(ls buprestore.tmp)" "bupdata.tmp" rm -rf buprestore.tmp