regulators: Skip validation tool tests in SDK

Automated unit tests exist for the phosphor-regulators configuration
file validation tool.

The unit tests run the validation tool against various input files.  The
validation tool is written in Python and requires the 'jsonschema'
Python module to be installed.  This module is not currently installed
within the SDK build/test execution environment.

Modify the meson build file to skip the validation tool tests when
building from within an SDK environment.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I4d79e4082855867b5543867d79dfe19b802b4837
diff --git a/phosphor-regulators/test/meson.build b/phosphor-regulators/test/meson.build
index e75176d..1608961 100644
--- a/phosphor-regulators/test/meson.build
+++ b/phosphor-regulators/test/meson.build
@@ -16,7 +16,6 @@
     'rail_tests.cpp',
     'rule_tests.cpp',
     'sensor_monitoring_tests.cpp',
-    'validate-regulators-config_tests.cpp',
     'write_verification_error_tests.cpp',
 
     'actions/action_environment_tests.cpp',
@@ -38,6 +37,12 @@
     'actions/set_device_action_tests.cpp'
 ]
 
+# Add validation tool tests if we are not in an SDK.  The SDK does not currently
+# include the jsonschema Python module required by the validation tool.
+if not get_option('oe-sdk').enabled()
+    phosphor_regulators_tests_source_files += 'validate-regulators-config_tests.cpp'
+endif
+
 test('phosphor-regulators-tests',
      executable('phosphor-regulators-tests',
                 phosphor_regulators_tests_source_files,