# Locally skipping a failing test in ansible?

**URL:** <https://forum.ansible.com/t/locally-skipping-a-failing-test-in-ansible/13101>\
**Category:** Ansible Project\
**Created:** [July 11, 2013, 3:06pm UTC](https://forum.ansible.com/t/locally-skipping-a-failing-test-in-ansible/13101 "2013-07-11T15:06:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy\_Appnel](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Post date:** [July 11, 2013, 3:06pm UTC](https://forum.ansible.com/t/locally-skipping-a-failing-test-in-ansible/13101/1 "2013-07-11T15:06:27Z")

</div>

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/\>

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [July 11, 2013, 8:46pm UTC](https://forum.ansible.com/t/locally-skipping-a-failing-test-in-ansible/13101/2 "2013-07-11T20:46:18Z")

</div>

Sounds like a bug.

Where’s the github ticket number for this? 🙂

---

<div class="post-metadata">

**Author:** ![Timothy\_Appnel](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Post date:** [July 22, 2013, 2:50am UTC](https://forum.ansible.com/t/locally-skipping-a-failing-test-in-ansible/13101/3 "2013-07-22T02:50:11Z")

</div>

[https://github.com/ansible/ansible/issues/3613](https://github.com/ansible/ansible/issues/3613)
