This avoids the test failing when invoking make with `TESTS=xxx` to
limit which tests are run.
Change-Id: I89c7096a64acc68114d4ca2d0042a219c57ad23a
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
logging.info("Serial tests received %d tests", len(tests))
logging.debug("Serial tests: {}".format(tests))
+
+ if len(tests) == 0:
+ tap = lttngtest.TapGenerator(1)
+ tap.skip("No tests specified by the environment")
+ sys.exit(0)
+
if not run_tests(tests):
sys.exit(1)