summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-10-16 10:21:12 -0400
committerJim Meyering <jim@meyering.net>2006-10-16 10:21:12 -0400
commit0c3a21c1fb0c1fc8289a7c87b9c7f04ee9df350e (patch)
treebb3a5b60069a67e38b9dcea97304588ace0b843a /tests
parentcd8bb1edea1f1eef4d38aed4ad1be2ecfd9a8b94 (diff)
downloadthird_party-cobbler-0c3a21c1fb0c1fc8289a7c87b9c7f04ee9df350e.tar.gz
third_party-cobbler-0c3a21c1fb0c1fc8289a7c87b9c7f04ee9df350e.tar.xz
third_party-cobbler-0c3a21c1fb0c1fc8289a7c87b9c7f04ee9df350e.zip
test code no longer overwrites user settings in /var/lib/cobbler
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/tests.py b/tests/tests.py
index f23bf0f..cc2ca73 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -13,11 +13,24 @@ import shutil
sys.path.append('../cobbler')
sys.path.append('./cobbler')
+import settings
+import collection_distros
+import collection_profiles
+import collection_systems
+
+settings.TESTMODE = True
+collection_distros.TESTMODE = True
+collection_profiles.TESTMODE = True
+collection_systems.TESTMODE = True
+
import api
import config
import utils
from cexceptions import CobblerException
+
+
+
FAKE_INITRD="initrd-2.6.15-1.2054_FAKE.img"
FAKE_INITRD2="initrd-2.5.16-2.2055_FAKE.img"
FAKE_INITRD3="initrd-1.8.18-3.9999_FAKE.img"