09-util-topic-tokenise.py 406 B

123456789101112131415161718
  1. #!/usr/bin/env python3
  2. from mosq_test_helper import *
  3. rc = 1
  4. client_args = sys.argv[1:]
  5. env = dict(os.environ)
  6. env['LD_LIBRARY_PATH'] = '../../lib:../../lib/cpp'
  7. try:
  8. pp = env['PYTHONPATH']
  9. except KeyError:
  10. pp = ''
  11. env['PYTHONPATH'] = '../../lib/python:'+pp
  12. client = mosq_test.start_client(filename=sys.argv[1].replace('/', '-'), cmd=client_args, env=env)
  13. client.wait()
  14. exit(client.returncode)