Skip to content

Commit 45dfa1d

Browse files
committed
Change the expected output of the clean command to also work for dnf5daemon
1 parent 5bf8c0a commit 45dfa1d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dnf-behave-tests/dnf/clean-cachefiles.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Scenario: Cleanup of the whole cache (dnf clean all)
3030
Then the exit code is 0
3131
And stdout matches line by line
3232
"""
33-
Removed 4 files, 4 directories \(total of [0-9]* KiB\). 0 errors occurred.
33+
(Removed 4 files, 4 directories \(total of [0-9]* KiB\). 0 errors occurred.|Cache successfully cleaned.)
3434
"""
3535
When I execute "find | sort" in "{context.dnf.installroot}/var/cache/dnf"
3636
Then stdout matches line by line
@@ -57,7 +57,7 @@ Scenario: Cleanup of the whole cache, cache contains link pointing outside, cont
5757
Then the exit code is 0
5858
And stdout matches line by line
5959
"""
60-
Removed 6 files, 4 directories \(total of [0-9]* KiB\). 0 errors occurred.
60+
(Removed 6 files, 4 directories \(total of [0-9]* KiB\). 0 errors occurred.|Cache successfully cleaned.)
6161
"""
6262
And directory "/var/cache/dnf" is empty
6363
And file "/tmp/user_dir/user_file1" exists
@@ -69,7 +69,7 @@ Scenario: Cached metadata cleanup (dnf clean metadata)
6969
Then the exit code is 0
7070
And stdout matches line by line
7171
"""
72-
Removed 3 files, 2 directories \(total of [0-9]* KiB\). 0 errors occurred.
72+
(Removed 3 files, 2 directories \(total of [0-9]* KiB\). 0 errors occurred.|Cache successfully cleaned.)
7373
"""
7474
When I execute "find | sort" in "{context.dnf.installroot}/var/cache/dnf"
7575
Then stdout matches line by line
@@ -86,7 +86,7 @@ Scenario: Cached packages cleanup (dnf clean packages)
8686
Then the exit code is 0
8787
And stdout matches line by line
8888
"""
89-
Removed 1 files, 1 directories \(total of [0-9]* KiB\). 0 errors occurred.
89+
(Removed 1 files, 1 directories \(total of [0-9]* KiB\). 0 errors occurred.|Cache successfully cleaned.)
9090
"""
9191
When I execute "find | sort" in "{context.dnf.installroot}/var/cache/dnf"
9292
Then stdout matches line by line
@@ -106,7 +106,7 @@ Scenario: Database cached cleanup (dnf clean dbcache)
106106
Then the exit code is 0
107107
And stdout matches line by line
108108
"""
109-
Removed 1 files, 1 directories \(total of [0-9]* KiB\). 0 errors occurred.
109+
(Removed 1 files, 1 directories \(total of [0-9]* KiB\). 0 errors occurred.|Cache successfully cleaned.)
110110
"""
111111
When I execute "find | sort" in "{context.dnf.installroot}/var/cache/dnf"
112112
Then stdout matches line by line

0 commit comments

Comments
 (0)