forked from Mirror/pmbootstrap
Qemu test: use pmbootstrap --details-to-stdout (!1785)
The qemu test executes a pmbootstrap instance with pmb.helpers.run.user(). Use the --details-to-stdout flag from now on for the started pmbootstrap process, so it is not silent when downloading packages with apk, and will therefore not run into the timeout of the parent process (which kills processes that are silent for more than five minutes by default). This fixes the test in our CI infrastructure.
This commit is contained in:
parent
0c001567b6
commit
f26eb0d9b8
1 changed files with 7 additions and 4 deletions
|
@ -69,11 +69,14 @@ def pmbootstrap_run(args, config, parameters, output="log"):
|
||||||
|
|
||||||
def pmbootstrap_yes(args, config, parameters):
|
def pmbootstrap_yes(args, config, parameters):
|
||||||
"""
|
"""
|
||||||
Execute pmbootstrap.py with a test pmbootstrap.conf, and pipe "yes"
|
Execute pmbootstrap.py with a test pmbootstrap.conf, and pipe "yes" into it
|
||||||
into it (so we can do a fully automated installation, using "y" as
|
(so we can do a fully automated installation, using "y" as password
|
||||||
password everywhere).
|
everywhere). Use --details-to-stdout to avoid the pmbootstrap process from
|
||||||
|
looking like it is hanging, when downloading packages with apk (otherwise
|
||||||
|
it would write no output, and get killed by the timeout).
|
||||||
"""
|
"""
|
||||||
command = "yes | ./pmbootstrap.py -c " + shlex.quote(config)
|
command = ("yes | ./pmbootstrap.py --details-to-stdout -c " +
|
||||||
|
shlex.quote(config))
|
||||||
for parameter in parameters:
|
for parameter in parameters:
|
||||||
command += " " + shlex.quote(parameter)
|
command += " " + shlex.quote(parameter)
|
||||||
return pmb.helpers.run.user(args, ["/bin/sh", "-c", command],
|
return pmb.helpers.run.user(args, ["/bin/sh", "-c", command],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue