diff --git a/tests/profiles/tinyproxy/task.yaml b/tests/profiles/tinyproxy/task.yaml index 6c61b662c..056e55f07 100644 --- a/tests/profiles/tinyproxy/task.yaml +++ b/tests/profiles/tinyproxy/task.yaml @@ -1,10 +1,14 @@ summary: smoke test for the tinyproxy profile execute: | - # enable tinyproxy service - systemctl start tinyproxy + # restart tinyproxy service as it may already be running + systemctl restart tinyproxy + + # wait for it to be running + sleep 1 # check is running systemctl is-active tinyproxy - # tinyproxy system service is confined - cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy (enforce)' + # check tinyproxy system service is confined + cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy \(enforce\)' +