[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Andreas Beckmann
debian at abeckmann.de
Fri Dec 23 10:26:27 UTC 2011
The following commit has been merged in the master branch:
commit 4626b468e4739275f4aa62d84ddfbd124db14b9d
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Mon Nov 21 22:22:59 2011 +0100
add infinitely expanding symlink test
foo -> foo/bar
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/debian/changelog b/debian/changelog
index c739bc2..c5bf2cf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -37,6 +37,7 @@ piuparts (0.42) UNRELEASED; urgency=low
* piuparts-slave.py: fix triggering tarball recreation, check tarball age
regularily, log tarball creation in *.tgz.log.
* piuparts.py:
+ - Add unittests for misbehaving symlinks.
- Fix resolving absolute symlinks of intermediate directory components,
i.e. /var/run -> /run while checking /etc/motd -> /var/run/motd.
Solves about 30000 false positives of
diff --git a/piuparts.py b/piuparts.py
index 8da7bf9..e2aeb9c 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -573,6 +573,7 @@ class IsBrokenSymlinkTests(unittest.TestCase):
self.symlink("../../dir-link/subdir/selfloop", "dir/subdir/selfloop1")
self.symlink("../../link/subdir-link/selfloop", "dir/subdir/selfloop2")
self.symlink("../../dir-link/subdir-link/selfloop", "dir/subdir/selfloop3")
+ self.symlink("explode/bomb", "explode")
def tearDown(self):
shutil.rmtree(self.testdir)
@@ -597,6 +598,10 @@ class IsBrokenSymlinkTests(unittest.TestCase):
self.failUnless(is_broken_symlink(self.testdir, self.testdir,
"selfloop"))
+ def testExpandingSelfLoopBroken(self):
+ self.failUnless(is_broken_symlink(self.testdir, self.testdir,
+ "explode"))
+
def testAbsoluteSelfLoopBroken(self):
self.failUnless(is_broken_symlink(self.testdir, self.testdir,
"absolute-selfloop"))
--
piuparts git repository
More information about the Piuparts-commits
mailing list