Files
air/smoke_test/smoke_test.py
T
ccoVeille 412be006ca fix typo (#595)
* chore: fix typo in code

* chore: fix tool names or registered trademarks

Docker
Codecov
Bash
Zsh

Also HTML is an acronym, so it has to be in uppercase

* documentation: fix Markdown fenced block identifier

some were using sh, zsh, most where using bash, some were missing

I updated to use shell everywhere
2024-05-30 23:11:27 +08:00

24 lines
462 B
Python

import os
from pexpect.popen_spawn import PopenSpawn
print(os.getcwd())
os.chdir(os.getcwd() + "\check_rebuild")
print(os.getcwd())
child = PopenSpawn("air")
child.expect
a = child.expect("running", timeout=300)
if a == 0:
with open("main.go", "a") as f:
f.write("\n\n")
else:
exit(0)
a = child.expect("running", timeout=300)
if a == 0:
print("::set-output name=value::PASS")
else:
print("::set-output name=value::FAIL")
exit(0)