ci: Adjust more 'spawn' settings in test_confserver

This commit is contained in:
Anton Maklakov 2019-06-13 10:05:14 +07:00 committed by bot
parent eeeffcafbf
commit 66790c3560

View file

@ -56,9 +56,7 @@ def main():
cmdline = "../confserver.py --kconfig Kconfig --config %s" % temp_sdkconfig_path
print("Running: %s" % cmdline)
p = pexpect.spawn(cmdline, timeout=0.5)
p.logfile = args.logfile
p.setecho(False)
p = pexpect.spawn(cmdline, timeout=30, logfile=args.logfile, echo=False, use_poll=True, maxread=1)
def expect_json():
# run p.expect() to expect a json object back, and return it as parsed JSON