From 9dcdb84ddcf6b5b1e4b08d4ea2aa2d92c8e364ed Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 29 Mar 2010 21:06:21 +0100 Subject: [PATCH] Disable system store when testing --- tests/0store-secure-add-helper | 2 ++ tests/testall.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 tests/0store-secure-add-helper diff --git a/tests/0store-secure-add-helper b/tests/0store-secure-add-helper new file mode 100755 index 0000000..ecdbef9 --- /dev/null +++ b/tests/0store-secure-add-helper @@ -0,0 +1,2 @@ +#!/bin/sh +exit 1 diff --git a/tests/testall.py b/tests/testall.py index 31e80c5..1a60cda 100755 --- a/tests/testall.py +++ b/tests/testall.py @@ -5,6 +5,8 @@ import unittest import subprocess import shutil, tempfile +from zeroinstall import support + mydir = os.path.dirname(__file__) pkg2zero = os.path.join(mydir, '..', 'pkg2zero') @@ -20,9 +22,10 @@ class TestAll(unittest.TestCase): def setUp(self): self.tmpdir = tempfile.mkdtemp('pkg2zero') os.environ['HOME'] = self.tmpdir + os.environ['PATH'] = mydir + ':' + os.environ['PATH'] def tearDown(self): - shutil.rmtree(self.tmpdir) + support.ro_rmtree(self.tmpdir) def testHelp(self): cout, cerr = run(["--help"]) -- 2.11.4.GIT