]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
Change t/tindex.py to pass on Mac OS.
authorDave Coombs <dcoombs@carillon.ca>
Thu, 14 Jan 2010 01:13:38 +0000 (20:13 -0500)
committerDave Coombs <dcoombs@carillon.ca>
Thu, 14 Jan 2010 01:13:38 +0000 (20:13 -0500)
It turns out /etc is a symlink (to /private/etc) on Mac OS, so checking
that the realpath of t/sampledata/etc is /etc fails.  Instead we now check
against the realpath of /etc.

t/tindex.py

index 9922b8f8f7c04e0897557455604312ee618010e3..48341c02703235f29640b9d9a1ff8e67f3a2c460 100644 (file)
@@ -9,5 +9,5 @@ def testbasic():
     sd = os.path.realpath('t/sampledata')
     WVPASSEQ(index.realpath('t/sampledata'), cd + '/t/sampledata')
     WVPASSEQ(os.path.realpath('t/sampledata/x'), sd + '/x')
-    WVPASSEQ(os.path.realpath('t/sampledata/etc'), '/etc')
+    WVPASSEQ(os.path.realpath('t/sampledata/etc'), os.path.realpath('/etc'))
     WVPASSEQ(index.realpath('t/sampledata/etc'), sd + '/etc')