Skip to content

Commit dc8d68a

Browse files
committed
[FIX] Commented not yet working function to clean the fillit-checker log file.
1 parent 24b3818 commit dc8d68a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

42PyChecker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,4 @@ def main():
202202
except KeyboardInterrupt:
203203
sys.exit(1)
204204
else:
205-
#raise OSError("Sorry, this script can't be run on windows !")
206-
main()
205+
raise OSError("Sorry, this script can't be run on windows !")

PyChecker/testing_suite/fillit_checker.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def clean_log(root_path: str):
1616
line = re.sub(r"\033\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]/", "", line)
1717
file2.write(line)
1818
print(line)
19-
#os.rename(root_path + '/.myfillitchecker-clean', root_path + '/.myfillitchecker')
20-
#return
19+
os.rename(root_path + '/.myfillitchecker-clean', root_path + '/.myfillitchecker')
20+
return
2121

2222

2323
def run(root_path: str, project_path: str):
@@ -39,9 +39,10 @@ def run(root_path: str, project_path: str):
3939
result = subprocess.run(['bash', root_path + "/testing_suites/fillit_checker/test.sh", project_path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode('utf-8')
4040
with open(root_path + '/.myfillitchecker', 'w+') as file:
4141
file.write(result)
42-
clean_log(root_path)
42+
#clean_log(root_path)
4343
#with open(root_path + '/.myfillitchecker', 'r') as file:
4444
# print(file.read())
4545
# for line in file:
4646
# if "NOTE" in line:
4747
# return line
48+
return "WIP"

0 commit comments

Comments
 (0)