Fix a check for yang validation (#15498)

[Sonic-Config-Engine] Re-add the yang validation check accidently removed by #13409
This commit is contained in:
Prince Sunny 2023-06-16 10:34:22 -07:00 committed by GitHub
parent 078b18df6d
commit 6df70097b4
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: