Fix `test_issue_6973_state_highstate_exit_code`.