From: Rob Browning Date: Sun, 14 Apr 2013 19:02:15 +0000 (-0500) Subject: tgit.py: set BUP_MAIN_EXE and BUP_DIR in testpacks(). X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=14a9d2c3fe091c3699862b57197d4c6a03a1b2ff;p=packages%2Fb%2Fbup.git tgit.py: set BUP_MAIN_EXE and BUP_DIR in testpacks(). Set these variables in testpacks(), just as we do for test_pack_name_lookup(), since it also depends on path.exe(). This was causing 'make check' to fail on Cygwin, and could be reproduced on Linux by explicitly invoking tgit.py via "./wvtest.py lib/bup/t/tgit.py". Reported-by: Will Rouesnel Signed-off-by: Rob Browning --- diff --git a/lib/bup/t/tgit.py b/lib/bup/t/tgit.py index b564736..1731c0f 100644 --- a/lib/bup/t/tgit.py +++ b/lib/bup/t/tgit.py @@ -50,8 +50,10 @@ def testencode(): @wvtest def testpacks(): - subprocess.call(['rm','-rf', 'pybuptest.tmp']) - git.init_repo('pybuptest.tmp') + os.environ['BUP_MAIN_EXE'] = bupmain = '../../../bup' + os.environ['BUP_DIR'] = bupdir = 'pybuptest.tmp' + subprocess.call(['rm','-rf', bupdir]) + git.init_repo(bupdir) git.verbose = 1 w = git.PackWriter()