Add settings as environment variables
This commit is contained in:
parent
b72d05f329
commit
b0c9ab111c
4
run.py
4
run.py
@ -50,7 +50,7 @@ def checks(termsize, settings):
|
|||||||
while run:
|
while run:
|
||||||
_separator(termsize)
|
_separator(termsize)
|
||||||
print("Running '%s'" % (check))
|
print("Running '%s'" % (check))
|
||||||
with subprocess.Popen(["checks/%s" % check]) as process:
|
with subprocess.Popen(["checks/%s" % check], env=settings) as process:
|
||||||
# Wait for process termination
|
# Wait for process termination
|
||||||
process.wait()
|
process.wait()
|
||||||
if process.returncode > 0:
|
if process.returncode > 0:
|
||||||
@ -80,7 +80,7 @@ def flavours(termsize, settings):
|
|||||||
run = True
|
run = True
|
||||||
while run:
|
while run:
|
||||||
_separator(termsize)
|
_separator(termsize)
|
||||||
with subprocess.Popen(["flavours/%s/install.sh" % flavour]) as process:
|
with subprocess.Popen(["flavours/%s/install.sh" % flavour], env=settings) as process:
|
||||||
# Wait for process termination
|
# Wait for process termination
|
||||||
process.wait()
|
process.wait()
|
||||||
if process.returncode > 0:
|
if process.returncode > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user