mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
5960e398ec
Don't mix every http request in with the tests output. Don't print that the file servers are starting unless -vv flag is passed. Capture the output of run with run_output which returns stdout, stderr and exit_code. Test against this rather than relying on sys.exit.
22 lines
471 B
Python
Executable file
22 lines
471 B
Python
Executable file
#!/usr/bin/env python
|
|
# This program fails if ./tools/format.py changes any files.
|
|
|
|
import sys
|
|
import util
|
|
import sys
|
|
import subprocess
|
|
|
|
|
|
def main():
|
|
util.run([sys.executable, "tools/format.py"])
|
|
result = util.run_output(
|
|
["git", "status", "-uno", "--porcelain", "--ignore-submodules"],
|
|
exit_on_fail=True)
|
|
if result.out:
|
|
print "Run tools/format.py "
|
|
print result.out
|
|
sys.exit(1)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|