Skip to content

Commit

Permalink
test: Clean /usr/local less aggressively in TestMenu.testBasic
Browse files Browse the repository at this point in the history
Only remove the cockpit/systemd directory that we added, not the whole
parent.
  • Loading branch information
martinpitt committed Dec 5, 2024
1 parent bfcdaa5 commit 4862de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/verify/check-shell-menu
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class TestMenu(testlib.MachineCase):
m.execute("mkdir -p /usr/local/share/cockpit/systemd; cp -rp /usr/share/cockpit/systemd/* /usr/local/share/cockpit/systemd")
m.execute(
"""sed -i '/"menu"/a "memory": { "label": "Memory", "path": "#/memory" },' /usr/local/share/cockpit/systemd/manifest.json""")
self.addCleanup(m.execute, "rm -r /usr/local/share/cockpit")
self.addCleanup(m.execute, "rm -r /usr/local/share/cockpit/systemd")

self.login_and_go("/system")

Expand Down

0 comments on commit 4862de2

Please sign in to comment.