Skip to content

Commit 91503c5

Browse files
pkratochkontura
authored andcommitted
Enable test for length of history list output outside of terminal
1 parent 47c10f6 commit 91503c5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dnf-behave-tests/dnf/history-list.feature

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,19 +207,17 @@ Scenario: history lame (no transaction with such package)
207207
And stdout is empty
208208

209209

210-
@xfail
211210
# Reported as https://github.com/rpm-software-management/dnf5/issues/2025
212211
@bz1786335
213212
@bz1786316
214213
@bz1852577
215214
@bz1906970
216-
# TODO change this to actually verify stdout
217-
Scenario: history longer than 80 charactersi gets cut when there is no terminal
218-
When I execute dnf with args "history | head -1 | wc -c"
215+
Scenario: history table width doesn't exceed 80 characters when there is no terminal
216+
When I execute dnf with args "history list | head -1"
219217
Then the exit code is 0
220-
And stdout is
218+
And stdout matches line by line
221219
"""
222-
80
220+
ID Command line {1,28}Date and time Action\(s\) Altered
223221
"""
224222

225223

0 commit comments

Comments
 (0)