Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Runner/suites/Performance/userspace-resource-manager/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,27 @@ run_one() {
esac
}

log_info "Restarting URM service"
if ! systemctl restart urm; then
log_skip "[SERVICE] $SERVICE_NAME could not be restarted — overall SKIP"
echo "$TESTNAME SKIP" >"$RES_FILE"
exit 0
fi

for i in $(seq 1 10); do
if systemctl is-active --quiet urm; then
log_pass "[SERVICE] $SERVICE_NAME is active (attempt $i)"
break
fi
if [ "$i" -eq 10 ]; then
log_skip "[SERVICE] $SERVICE_NAME not active — overall SKIP"
echo "$TESTNAME SKIP" >"$RES_FILE"
exit 0
fi
sleep 1
done

log_info "Proceeding with test-cases"
for t in $TESTS; do
run_one "$t"
rc=$?
Expand Down
Loading