Skip to content

Commit

Permalink
add tree output
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDold committed Apr 13, 2024
1 parent ca33ae0 commit 94a0f91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions misc/tests/test-parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,13 @@ def main():
"""
search_dir = os.path.join(SRC_DIR, "search")
cc_files = get_src_files(search_dir, (".cc",))
# assert len(cc_files) > 0
if not len(cc_files) > 0:
print("WARNING: Not .cc files found.")

print(str(subprocess.run(["pwd"], stdout=subprocess.PIPE).stdout))
tree = subprocess.run(["tree", search_dir, "-L", "2"], stdout=subprocess.PIPE, text=True)
print(tree.stdout)
print("Checking Component Parameters of"
" {} *.cc files".format(len(cc_files)))
return main2(cc_files, cwd=DIR) == 0
Expand Down

0 comments on commit 94a0f91

Please sign in to comment.