summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-13 05:08:52 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-13 05:33:06 -0500
commit876c11517277d03581e5f2bc2e9bdfc9a619a932 (patch)
treec7417f9898ba551129ffe3c73b2f50e437408720 /gpsfake
parent7c1520149fa993a048c2d2948af4d0ee13323f62 (diff)
downloadgpsd-876c11517277d03581e5f2bc2e9bdfc9a619a932.tar.gz
Don't allocate a private port when cycling logs for client testing.
All regression tests pass.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpsfake b/gpsfake
index 8166bce8..495c2cc1 100755
--- a/gpsfake
+++ b/gpsfake
@@ -166,6 +166,10 @@ if __name__ == '__main__':
else:
print >>sys.stderr, "Processing %s" % ",".join(arguments)
+ # Don't allocate a private port when cycling logs for client testing.
+ if port is None and not singleshot:
+ port = gps.GPSD_PORT
+
test = gpsfake.TestSession(prefix=monitor, port=port, options=doptions,
tcp=tcp, udp=udp, verbose=verbose,
predump=predump, slow=slow)