summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-26 02:07:31 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-26 02:07:31 +0000
commitccc24a13509838dce21670743f7604d2adb2e99e (patch)
treebb74586aa62302eb8ee4bb870d9f358bc39adc15 /gpsfake
parent1573fe1ee6c9ff19fe039f98994ee019a22dbafa (diff)
downloadgpsd-ccc24a13509838dce21670743f7604d2adb2e99e.tar.gz
This may fix the race window in the regression tests.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsfake b/gpsfake
index 9b9a6e7a..9c4355cc 100755
--- a/gpsfake
+++ b/gpsfake
@@ -151,8 +151,7 @@ if __name__ == '__main__':
if verbose:
progress = False
test.progress = sys.stdout.write
- print "Foo!"
-
+ test.spawn()
try:
for logfile in arguments:
try:
@@ -176,6 +175,7 @@ if __name__ == '__main__':
try:
if pipe:
test.client_add(client_init + "\n")
+ time.sleep(1) # Give daemon time to get ready for the feeds.
test.run()
except socket.error, msg:
sys.stderr.write("gpsfake: socket error %s.\n" % msg)