X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=t%2Ftindex.py;h=d237757e2115d0898dfb98886cbcf65da38f5726;hb=dd87ea1e9fd87dc67d5d01a9c277590742857b37;hp=330b44467d0b61d1961ccf0a39f10d670c961daa;hpb=98805befbcccd27869d9f5f70132a3e847477d75;p=bup.git diff --git a/t/tindex.py b/t/tindex.py index 330b444..d237757 100644 --- a/t/tindex.py +++ b/t/tindex.py @@ -7,18 +7,18 @@ from wvtest import * def index_basic(): cd = os.path.realpath('') WVPASS(cd) - 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'), os.path.realpath('/etc')) - WVPASSEQ(index.realpath('t/sampledata/etc'), sd + '/etc') + sd = os.path.realpath('sampledata') + WVPASSEQ(index.realpath('sampledata'), cd + '/sampledata') + WVPASSEQ(os.path.realpath('sampledata/x'), sd + '/x') + WVPASSEQ(os.path.realpath('sampledata/etc'), os.path.realpath('/etc')) + WVPASSEQ(index.realpath('sampledata/etc'), sd + '/etc') @wvtest def index_writer(): unlink('index.tmp') ds = os.stat('.') - fs = os.stat('t/tindex.py') + fs = os.stat('tindex.py') w = index.Writer('index.tmp') w.add('/var/tmp/sporky', fs) w.add('/etc/passwd', fs) @@ -50,7 +50,7 @@ def index_dirty(): unlink('index.tmp') unlink('index2.tmp') ds = os.stat('.') - fs = os.stat('t/tindex.py') + fs = os.stat('tindex.py') w1 = index.Writer('index.tmp') w1.add('/a/b/x', fs)