Skip to content

Commit 918e22d

Browse files
committed
DEBUG: test ps output
1 parent 29fcb44 commit 918e22d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/t/test_ps.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import pytest
22

3+
from conftest import assert_bash_exec
4+
35

46
def is_int(s):
57
try:
@@ -35,7 +37,9 @@ def test_4(self, completion):
3537
assert not completion
3638

3739
@pytest.mark.complete("ps --pid ")
38-
def test_5(self, completion):
40+
def test_5(self, completion, bash):
41+
ps_pid_output = assert_bash_exec(bash, "command ps ax -o pid=", want_output=True)
42+
print("\n=====PS output=====\n", ps_pid_output, "\n======PS output end=====\n")
3943
assert completion
4044
assert all(map(is_int, completion))
4145

0 commit comments

Comments
 (0)