From 833e5bab330379797568007671d77e80e58ae388 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Aug 2022 10:35:54 -0400 Subject: Only run autoship test in strict mode --- test/meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/meson.build b/test/meson.build index b38cee42..a1cac7ae 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,7 +1,6 @@ # Copyright 2021-2022 David Robillard # SPDX-License-Identifier: CC0-1.0 OR ISC -autoship = find_program('autoship', required: false) run_test_suite = files('run_test_suite.py') wrapper = meson.get_external_property('exe_wrapper', '') @@ -10,8 +9,11 @@ wrapper = meson.get_external_property('exe_wrapper', '') # Project Metadata # #################### -if autoship.found() - test('autoship', autoship, args: ['test', serd_src_root], suite: 'data') +if get_option('strict') and not meson.is_subproject() + autoship = find_program('autoship', required: false) + if autoship.found() + test('autoship', autoship, args: ['test', serd_src_root], suite: 'data') + endif endif ############## -- cgit v1.2.1