source: trunk/misc/build_helpers/test-git-ignore.py

Last change on this file was ae5e282, checked in by heartsucker <heartsucker@…>, at 2019-04-05T09:39:10Z

update raise syntax for python3 compatibility

  • Property mode set to 100644
File size: 224 bytes
Line 
1#!/usr/bin/env python
2
3import sys
4from subprocess import Popen, PIPE
5
6cmd = ["git", "status", "--porcelain"]
7p = Popen(cmd, stdout=PIPE)
8output = p.communicate()[0]
9print(output)
10if output == "":
11    sys.exit(0)
12sys.exit(1)
Note: See TracBrowser for help on using the repository browser.