Merge pull request #26164 from mrc0mmand/test-bus-timeout

test: bump the client-side timeout in sd-bus as well
This commit is contained in:
Frantisek Sumsal 2023-01-24 08:49:29 +00:00 committed by GitHub
commit b0c110967b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -1943,6 +1943,9 @@ EOF
<limit name="service_start_timeout">60000</limit>
</busconfig>
EOF
# Bump the client-side timeout in sd-bus as well
mkdir -p "$initdir/etc/systemd/system.conf.d"
echo -e '[Manager]\nDefaultEnvironment=SYSTEMD_BUS_TIMEOUT=60' >"$initdir/etc/systemd/system.conf.d/bus-timeout.conf"
fi
}

View file

@ -18,7 +18,7 @@ def run(args):
logger.info("spawning test")
console = pexpect.spawn(args.command, args.arg, env={
"TERM": "linux",
}, encoding='utf-8', timeout=30)
}, encoding='utf-8', timeout=60)
if args.verbose:
console.logfile = sys.stdout