Add debian_frontend flag
Tests / Run-Tests (push) Failing after 2s
Details
Tests / Run-Tests (push) Failing after 2s
Details
parent
291bd52264
commit
a86bd90aba
|
@ -19,7 +19,7 @@ if sys.platform == "win32":
|
||||||
exit_code = 0
|
exit_code = 0
|
||||||
for file_name in glob.glob("*.c", recursive=False):
|
for file_name in glob.glob("*.c", recursive=False):
|
||||||
if file_name.rstrip(".c") in file_only_list:
|
if file_name.rstrip(".c") in file_only_list:
|
||||||
should_continue = input(f"{file_name}; run (y/N)? ").lower()
|
should_continue = "y" if os.getenv("DEBIAN_FRONTEND") == "noninteractive" else input(f"{file_name}; run (y/N)? ").lower()
|
||||||
if should_continue != "y":
|
if should_continue != "y":
|
||||||
continue
|
continue
|
||||||
subprocess.run(["gcc", "-o", "a.out", "-std=c11", "-Wall", "-g", file_name], check=True)
|
subprocess.run(["gcc", "-o", "a.out", "-std=c11", "-Wall", "-g", file_name], check=True)
|
||||||
|
|
Loading…
Reference in New Issue