summaryrefslogtreecommitdiff
path: root/gpsfake.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-24 01:12:17 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-24 01:12:17 +0000
commit61b17b60cf13aef6477fc9d0087e97faf95aaa2b (patch)
treef841f73485b8792402b29b0286973f091e743d87 /gpsfake.py
parenta273c09407c99cd0dca26e958433067e3530ca36 (diff)
downloadgpsd-61b17b60cf13aef6477fc9d0087e97faf95aaa2b.tar.gz
Make the spawn command that launched the test daemon visible.
Diffstat (limited to 'gpsfake.py')
-rw-r--r--gpsfake.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsfake.py b/gpsfake.py
index 305e2a6c..46d69d6e 100644
--- a/gpsfake.py
+++ b/gpsfake.py
@@ -140,11 +140,11 @@ class DaemonInstance:
self.pidfile = "/tmp/gpsfake_pid-%s" % os.getpid()
def spawn(self, doptions, background=False, prefix=""):
"Spawn a daemon instance."
- spawncmd = "gpsd -N -F %s -P %s %s" % (self.control_socket, self.pidfile, doptions)
- spawncmd = prefix + spawncmd.strip()
+ self.spawncmd = "gpsd -N -F %s -P %s %s" % (self.control_socket, self.pidfile, doptions)
+ self.spawncmd = prefix + self.spawncmd.strip()
if background:
- spawncmd += " &"
- os.system(spawncmd)
+ self.spawncmd += " &"
+ os.system(self.spawncmd)
def wait_pid(self):
"Wait for the daemon, get its PID and a control-socket connection."
while True: