Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #16 from iNecas/cli-test-rhsmcertd

cli-test-rhsmcerd - don't check the output of rhsmcertd restart
  • Loading branch information...
commit 47f3fbcf901a8c6750953e1a4ee3621a42ca0fc5 2 parents ce7152b + 87d48eb
@pitr-ch pitr-ch authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 scripts/system-test/cli_tests/
7 scripts/system-test/cli_tests/
@@ -2,6 +2,7 @@
header "RHSM"
RHSM_AK1=$(nospace "ak1_$RAND")
@@ -68,7 +69,11 @@ if sm_present; then
name1=$(sudo subscription-manager identity | grep -o -E "^name:.*")
name=${name1:6} # grab name
test_success "system unregister in katello" system unregister --name="$name" --org="$RHSM_ORG"
- test_own_cmd_success "restart rhsmcrtd" sudo service rhsmcertd restart
+ # ignore output from service restart: we don't care it says stopping failed
+ # as long as the exit code is 0
+ function restart_rhsmcertd { sudo service rhsmcertd restart &>/dev/null; }
+ test_own_cmd_success "restart rhsmcrtd" restart_rhsmcertd
test_own_cmd_failure "system is not registered" sudo subscription-manager identity
# should cascade and delete everything
Please sign in to comment.
Something went wrong with that request. Please try again.