[Git][NTPsec/ntpsec][master] Skip binaries that do not exist.
Amar Takhar
gitlab at mg.gitlab.com
Thu Mar 24 01:36:20 UTC 2016
Amar Takhar pushed to branch master at NTPsec / ntpsec
Commits:
7d3dc60b by Amar Takhar at 2016-03-23T21:35:56-04:00
Skip binaries that do not exist.
- - - - -
1 changed file:
- pylib/bin_test.py
Changes:
=====================================
pylib/bin_test.py
=====================================
--- a/pylib/bin_test.py
+++ b/pylib/bin_test.py
@@ -1,6 +1,7 @@
from waflib.Utils import subprocess
from waflib.Logs import pprint
import re
+from os.path import exists
cmd_map = {
("main/ntpd/ntpd", "-h"): r'.*must be run as root, not uid.*',
@@ -28,6 +29,11 @@ def run(cmd, reg):
cmd = [cmd[0]]
print "running: ", " ".join(cmd),
+
+ if not exists("build/%s" % cmd[0]):
+ pprint("YELLOW", " SKIPPING (does not exist)")
+ return False
+
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=None, cwd="build")
stdout, stderr = p.communicate()
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7d3dc60b94ddb2299b7140acfaccf112d6504869
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160324/29d5b967/attachment.html>
More information about the vc
mailing list