Fixed format test. It was not performing checks due to moving of OPENRAM_HOME. Fixed some tabs and print statements.

This commit is contained in:
mguthaus
2017-04-24 11:55:11 -07:00
parent 9f6bd6c9d3
commit bd7958be28
3 changed files with 28 additions and 26 deletions
+4 -2
View File
@@ -16,7 +16,7 @@ class code_format_test(unittest.TestCase):
"Run a test to check for tabs instead of spaces in the all source files."
def runTest(self):
source_code_dir = os.environ["OPENRAM_HOME"] + "/compiler"
source_code_dir = os.environ["OPENRAM_HOME"]
source_codes = setup_files(source_code_dir)
errors = 0
@@ -32,7 +32,9 @@ class code_format_test(unittest.TestCase):
continue
if re.search("debug.py$", code):
continue
if re.search("header.py$", code):
if re.search("testutils.py$", code):
continue
if re.search("globals.py$", code):
continue
if re.search("openram.py$", code):
continue