mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-09 01:01:11 +08:00
19 lines
406 B
Python
Executable File
19 lines
406 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from mosq_test_helper import *
|
|
|
|
rc = 1
|
|
|
|
client_args = sys.argv[1:]
|
|
env = dict(os.environ)
|
|
env['LD_LIBRARY_PATH'] = '../../lib:../../lib/cpp'
|
|
try:
|
|
pp = env['PYTHONPATH']
|
|
except KeyError:
|
|
pp = ''
|
|
env['PYTHONPATH'] = '../../lib/python:'+pp
|
|
|
|
client = mosq_test.start_client(filename=sys.argv[1].replace('/', '-'), cmd=client_args, env=env)
|
|
client.wait()
|
|
exit(client.returncode)
|