summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-15 21:17:23 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-15 21:17:23 +0100
commit247ae6fbec98dbc42c3910df2942842ef5256715 (patch)
treee19892888e8abba85ac3aefd9a02997bd60563e0 /pyLoadCore.py
parentkeep downloaded files for debug report (diff)
downloadpyload-247ae6fbec98dbc42c3910df2942842ef5256715.tar.xz
fix test cases
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index cfb2c38d0..e79da3fc3 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -273,7 +273,7 @@ class Core(object):
self.version = CURRENT_VERSION
- if not exists("pyload.conf"):
+ if not exists("pyload.conf") and not tests:
from module.setup import Setup
print "This is your first start, running configuration assistent now."
@@ -312,7 +312,8 @@ class Core(object):
self.remote &= self.config['remote']['activated']
pid = self.isAlreadyRunning()
- if pid:
+ # dont exit when in test runner
+ if pid and not tests:
print _("pyLoad already running with pid %s") % pid
exit()
@@ -350,8 +351,9 @@ class Core(object):
self.log.info(_("Starting") + " pyLoad %s" % CURRENT_VERSION)
self.log.info(_("Using home directory: %s") % getcwd())
-
- self.writePidFile()
+
+ if not tests:
+ self.writePidFile()
#@TODO refractor