summaryrefslogtreecommitdiffstats
path: root/tests/test_vdkr.py
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-01-08 19:34:19 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-09 03:32:52 +0000
commit3d7bf7da2d9371dde3053efc5b376f9664ece3ea (patch)
tree1e554b8eee455d965694d5837b6676eac26b910d /tests/test_vdkr.py
parentf367e1c738b72fd6bd9a704a11f50db838f47702 (diff)
downloadmeta-virtualization-3d7bf7da2d9371dde3053efc5b376f9664ece3ea.tar.gz
vcontainer: fix ps -q to suppress port forward display
When using `ps -q` or `ps --quiet`, only container IDs should be output. The port forward registry display was being included, which broke cleanup code that expected just container IDs. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'tests/test_vdkr.py')
-rw-r--r--tests/test_vdkr.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_vdkr.py b/tests/test_vdkr.py
index c343e05f..33744107 100644
--- a/tests/test_vdkr.py
+++ b/tests/test_vdkr.py
@@ -101,16 +101,16 @@ class TestPortForwarding:
101 # Stop any running memres first 101 # Stop any running memres first
102 vdkr.memres_stop() 102 vdkr.memres_stop()
103 103
104 # Start memres with port forwarding 104 # Start memres (no static port forwards needed - use dynamic via -p on run)
105 result = vdkr.memres_start(timeout=180, port_forwards=["8080:80"]) 105 result = vdkr.memres_start(timeout=180)
106 assert result.returncode == 0, f"memres start failed: {result.stderr}" 106 assert result.returncode == 0, f"memres start failed: {result.stderr}"
107 107
108 try: 108 try:
109 # Pull nginx:alpine if not present 109 # Pull nginx:alpine if not present
110 vdkr.run("pull", "nginx:alpine", timeout=300) 110 vdkr.run("pull", "nginx:alpine", timeout=300)
111 111
112 # Run nginx (--network=host is the default) 112 # Run nginx with port forward - Docker sets up iptables for bridge networking
113 result = vdkr.run("run", "-d", "--rm", "nginx:alpine", timeout=60) 113 result = vdkr.run("run", "-d", "--rm", "-p", "8080:80", "nginx:alpine", timeout=60)
114 assert result.returncode == 0, f"nginx run failed: {result.stderr}" 114 assert result.returncode == 0, f"nginx run failed: {result.stderr}"
115 115
116 # Give nginx time to start 116 # Give nginx time to start