Skip to content

Commit

Permalink
fix unit test failure (sonic-net#7436)
Browse files Browse the repository at this point in the history
  • Loading branch information
uraghura committed Oct 2, 2021
1 parent bb907d2 commit 05c2896
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sonic-yang-models/tests/test_sonic_yang_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ def test_content(response):
def test_generate_yang_tree():

# Generate YANG Tree, see no error in it.
pyang_tree_cmd = "pyang -f tree ./yang-models/*.yang > ./yang-models/sonic_yang_tree"
pyang_tree_cmd = "pyang -Vf tree -p /usr/local/share/yang/modules/ietf ./yang-models/*.yang > ./yang-models/sonic_yang_tree"
if (system(pyang_tree_cmd)):
print("Failed: {}".format(pyang_tree_cmd))
system("pyang --version")
system("env")
system("ls -l /usr/local/share/yang/modules/ietf/")
exit(1)
else:
print("Passed: {}".format(pyang_tree_cmd))
Expand Down

0 comments on commit 05c2896

Please sign in to comment.