Locally skipping a failing test in ansible?

This is a touch of topic in that the problem is my company's environment than something with ansible.

I monitor the state and stability of the devel HEAD using a Jenkins install here. It's been showing red for a month or more. The problem is that our "sudo" accounts cannot access mount info I'm guessing for some security reasons. Does anyone have a suggestion for ignoring that failing test so it's not perpetually marked broken?

Here is the error getting produced for the record:

Stacktrace

00:00:33.804 ======================================================================
00:00:33.805 FAIL: test_one (TestPlayBook.TestPlaybook)
00:00:33.805 ----------------------------------------------------------------------
00:00:33.805 Traceback (most recent call last):
00:00:33.805 File "/.statelite/tmpfs/data/VCS/est-ax010-d/logs01/jenkins/workspace/ansible-devel/test/TestPlayBook.py", line 165, in test_one
00:00:33.805 assert utils.jsonify(expected, format=True) == utils.jsonify(actual,format=True)
00:00:33.805 AssertionError:
00:00:33.805 -------------------- >> begin captured stdout << ---------------------
00:00:33.805 ['start', ['play start', ['all']], ['failed', ['localhost', {'msg': 'Traceback (most recent call last):\n File "/home/tpettd/.ansible/tmp/ansible-1373490994.23-103315157514215/setup", line 3048, in <module>\n main()\n File "/home/tpettd/.ansible/tmp/ansible-1373490994.23-103315157514215/setup", line 2132, in main\n data = run_setup(module)\n File "/home/tpettd/.ansible/tmp/ansible-1373490994.23-103315157514215/setup", line 2070, in run_setup\n facts = ansible_facts()\n File "/home/tpettd/.ansible/tmp/ansible-1373490994.23-103315157514215/setup", line 2060, in ansible_facts\n facts.update(Hardware().populate())\n File "/home/tpettd/.ansible/tmp/ansible-1373490994.23-103315157514215/setup", line 505, in populate\n self.get_mount_facts()\n File "/home/tpettd/.ansible/tmp/ansible-1373490994.23-103315157514215/setup", line 629, in get_mount_facts\n statvfs_result = os.statvfs(fields[1])\nOSError: [Errno 13] Permission denied: \'/root/.ssh\'\n', 'failed': True, 'parsed': False, 'invocation': {'module_name': 'setup', 'module_args': ''}}, False]], ['task start', ['test basic success command', False]]]
00:00:33.805 **ACTUAL**
00:00:33.805 {
00:00:33.805 "localhost": {
00:00:33.805 "changed": 0,
00:00:33.805 "failures": 1,
00:00:33.805 "ok": 0,
00:00:33.805 "skipped": 0,
00:00:33.805 "unreachable": 0
00:00:33.805 }
00:00:33.805 }
00:00:33.805 **EXPECTED**
00:00:33.805 {
00:00:33.805 "localhost": {
00:00:33.805 "changed": 9,
00:00:33.805 "failures": 0,
00:00:33.805 "ok": 11,
00:00:33.805 "skipped": 1,
00:00:33.805 "unreachable": 0
00:00:33.805 }
00:00:33.805 }
00:00:33.805
00:00:33.805 --------------------- >> end captured stdout << ----------------------

<tim/>

Sounds like a bug.

Where’s the github ticket number for this? :slight_smile:

https://github.com/ansible/ansible/issues/3613