mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 13:07:56 +00:00
29 lines
802 B
Python
29 lines
802 B
Python
#! /usr/bin/env python
|
|
|
|
# This helper script is used with the 'test-desert-island' Makefile target.
|
|
|
|
import sys
|
|
|
|
good = True
|
|
build_out = sys.argv[1]
|
|
mode = sys.argv[2]
|
|
|
|
print
|
|
|
|
for line in open(build_out, "r"):
|
|
if mode == "no-downloads":
|
|
# when setup_requires= uses misc/dependencies/setuptools-0.6c8.egg,
|
|
# it causes a "Downloading: misc/dependencies/.." line to be emitted,
|
|
# which doesn't count as a network download.
|
|
if line.startswith("Reading ") or line.startswith("Downloading http:"):
|
|
print line,
|
|
good = False
|
|
if good:
|
|
if mode == "no-downloads":
|
|
print "Good: build did not try to download any files"
|
|
sys.exit(0)
|
|
else:
|
|
if mode == "no-downloads":
|
|
print "Failed: build tried to download files"
|
|
sys.exit(1)
|