mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/tests/podman: replace deprecated os.system in tls-ghostunnel
Seems the shell script ${gen-ca} doesn't have a prefix, and thus requires being
run on a shell.
This commit is contained in:
parent
ebd782baf8
commit
bc237fdc0a
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ import ../make-test-python.nix (
|
|||
};
|
||||
|
||||
testScript = ''
|
||||
import os
|
||||
import subprocess
|
||||
import shlex
|
||||
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ import ../make-test-python.nix (
|
|||
|
||||
def cmd(command):
|
||||
print(f"+{command}")
|
||||
r = os.system(command)
|
||||
r = subprocess.run(command, shell=True).returncode
|
||||
if r != 0:
|
||||
raise Exception(f"Command {command} failed with exit code {r}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue