summaryrefslogtreecommitdiffstats
path: root/timezone.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-04-01 17:35:26 +0000
committerMike Fulbright <msf@redhat.com>2003-04-01 17:35:26 +0000
commit7b51622dd33625f785879cd3e2b4fdce7908e57a (patch)
treec316b3f8712c00721e5c32af1035982bed073814 /timezone.py
parent0eab0d69fb0f53bb3c654bbe53383dca7e329c91 (diff)
downloadanaconda-7b51622dd33625f785879cd3e2b4fdce7908e57a.tar.gz
anaconda-7b51622dd33625f785879cd3e2b4fdce7908e57a.tar.xz
anaconda-7b51622dd33625f785879cd3e2b4fdce7908e57a.zip
dont do bad things in test mode
Diffstat (limited to 'timezone.py')
-rw-r--r--timezone.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/timezone.py b/timezone.py
index 31b8fe425..c4ec9275d 100644
--- a/timezone.py
+++ b/timezone.py
@@ -12,7 +12,7 @@
#
import iutil
-
+from flags import flags
from rhpl.log import log
def bool(val):
@@ -28,6 +28,10 @@ class Timezone:
f.write(" %s\n" % self.tz)
def write(self, instPath):
+ # dont do this in test mode!
+ if flags.test:
+ return
+
fromFile = instPath + "/usr/share/zoneinfo/" + self.tz
try: