Fix a check for yang validation (#15498) (#15600)

This commit is contained in:
mssonicbld 2023-06-26 16:15:11 +08:00 committed by GitHub
parent c5167457eb
commit 260173782a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ class TestCfgGen(TestCase):
def run_script(self, argument, check_stderr=False, verbose=False):
print('\n Running sonic-cfggen ' + ' '.join(argument))
self.assertTrue(self.yang.validate(argument))
if check_stderr:
output = subprocess.check_output(self.script_file + argument, stderr=subprocess.STDOUT)
else: