summary refs log tree commit diff
path: root/nixos/tests/podman-dnsname.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/podman-dnsname.nix')
-rw-r--r--nixos/tests/podman-dnsname.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/podman-dnsname.nix b/nixos/tests/podman-dnsname.nix
index 9e4e8fdb08a..dd352f754dc 100644
--- a/nixos/tests/podman-dnsname.nix
+++ b/nixos/tests/podman-dnsname.nix
@@ -21,7 +21,7 @@ import ./make-test-python.nix (
       podman.wait_for_unit("sockets.target")
 
       with subtest("DNS works"): # also tests inter-container tcp routing
-        podman.succeed("tar cvf scratchimg.tar --files-from /dev/null && podman import scratchimg.tar scratchimg")
+        podman.succeed("tar cv --files-from /dev/null | podman import - scratchimg")
         podman.succeed(
           "podman run -d --name=webserver -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin -w ${webroot} scratchimg ${python3}/bin/python -m http.server 8000"
         )