mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-02 02:57:53 +02:00
Fix print errors in code format unit test.
This commit is contained in:
@@ -125,6 +125,11 @@ def check_file_format_whitespace(file_name):
|
||||
def check_print_output(file_name):
|
||||
"""Check if any files (except debug.py) call the _print_ function. We should
|
||||
use the debug output with verbosity instead!"""
|
||||
|
||||
skip_files = ["printGDS.py", "uniquifyGDS.py", "processGDS.py", "model_data_util.py"]
|
||||
base_file_name = os.path.basename(file_name)
|
||||
if base_file_name in skip_files:
|
||||
return(0)
|
||||
file = open(file_name, "r+b")
|
||||
line = file.read().decode('utf-8')
|
||||
# skip comments with a hash
|
||||
|
||||
Reference in New Issue
Block a user