From bc237fdc0acd50181a8c1d7fff897e2675a0d997 Mon Sep 17 00:00:00 2001 From: klea Date: Sun, 28 Jun 2026 06:30:39 +0000 Subject: [PATCH] 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. --- nixos/tests/podman/tls-ghostunnel.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/podman/tls-ghostunnel.nix b/nixos/tests/podman/tls-ghostunnel.nix index 1fcfd08f0efc..027683df4b25 100644 --- a/nixos/tests/podman/tls-ghostunnel.nix +++ b/nixos/tests/podman/tls-ghostunnel.nix @@ -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}")