kumquat-buildroot/support/scripts
Romain Naour 03c3fbd81c support/scripts/boot-qemu-image.py: properly catch timeout
As reported on IRC by sephthir, the gitlab test of the defconfig
qemu_sparc_ss10_defconfig doesn't error out while the system
is not working properly.

This is because we explicitly wait for the timeout as an expected
condition, but do not check for it. Indeed, pexpect.expect() returns
the index of the matching condition in the list of expected conditions,
but we just ignore the return code, so we are not able to differentiate
between a successful login (or prompt) from a timeout.

By default, pexepect.expect() raises the pexpect.TIMEOUT exception on a
timeout, and we are already prepared to catch and handle that exception.
But because pexpect.TIMEOUT is passed as an expected condition, the
exception is not raised.

Remove pexpect.TIMEOUT from the list of expected conditions, so that the
exception is properly raised again, and so that we can catch it.

The qemu_sparc_ss10_defconfig is already fixed by
4d16e6f532.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
[yann.morin.1998@free.fr: reword commit log]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-02-20 22:44:29 +01:00
..
apply-patches.sh support/scripts/apply-patches.sh: manage uncompression 2020-10-17 14:44:05 +02:00
boot-qemu-image.py support/scripts/boot-qemu-image.py: properly catch timeout 2021-02-20 22:44:29 +01:00
br2-external system: support br2-external init systems 2020-10-14 22:48:42 +02:00
brpkgutil.py
check-bin-arch package/guile: bump to version 3.0.4 2020-08-08 18:59:19 +02:00
check-dotconfig.py support/scripts: add check-dotconfig.py 2020-07-27 18:13:19 +02:00
check-host-rpath core: implement per-package SDK and target 2019-11-29 14:24:05 +01:00
check-kernel-headers.sh support/scripts/check-kernel-headers.sh: do not print error for loose checks 2020-03-21 15:47:03 +01:00
check-merged-usr.sh
cpedb.py support/scripts/cpedb.py: remove import pickle 2021-02-16 21:16:55 +01:00
cve.py support/scripts/{pkg-stats, cve.py}: support CPE ID based matching 2021-01-04 21:38:20 +01:00
eclipse-register-toolchain
expunge-gconv-modules
fix-configure-powerpc64.sh
fix-rpath package/pkg-generic.mk, support/scripts/fix-rpath: fix per-package regexp 2019-12-12 08:27:54 +01:00
gen-bootlin-toolchains support/scripts/gen-bootlin-toolchains: do not assume RPC for glibc toolchains 2020-12-29 22:03:17 +01:00
generate-gitlab-ci-yml support/scripts/generate-gitlab-ci-yml: rework generation of pipelines 2020-10-06 15:38:48 +02:00
genimage.sh support/scripts/genimage.sh: pass an empty rootpath to genimage 2019-10-27 12:19:32 +01:00
graph-build-time
graph-depends
hardlink-or-copy
mkmakefile
mkusers
pkg-stats support/scripts/pkg-stats: add ignored_cves to json output 2021-02-16 23:15:06 +01:00
pycompile.py support/scripts/pycompile: add --verbose option 2020-09-13 10:28:36 +02:00
setlocalversion support/scripts/setlocalversion: fix/improve Mercurial output 2020-10-03 09:11:03 +02:00
size-stats