EFForg/OpenWireless

Travis CI failing -- But run-tests.sh succeeds locally

Rangak opened this issue · 4 comments

We have Travis CI set up here: https://travis-ci.org/EFForg/OpenWireless

The builds are failing in Travis but not locally, for example: https://travis-ci.org/EFForg/OpenWireless/builds/47143106

Failed with:

======================================================================

FAIL: test_change_password_first_time (change_password_first_time_test.TestChangePasswordFirstTime)

----------------------------------------------------------------------

Traceback (most recent call last):

File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/mock.py", line 1201, in patched

return func(*args, **keywargs)

File "/home/travis/build/EFForg/OpenWireless/test/change_password_first_time_test.py", line 52, in test_change_password_first_time

uci.set.assert_called_once_with('openwireless.setup_state', 'setup-private-net')

File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/mock.py", line 845, in assert_called_once_with

raise AssertionError(msg)

AssertionError: Expected to be called once. Called 3 times.

Moving last login to bottom of screen seems to have fixed Travis-CI.

With next commit:

8648609

this bug has reappeared.

#277 seems to have fixed this issue as well. Root cause of difference between Travis-CI and locally executing run-tests.sh is still unclear. Leave this issue open and move to beta milestone pending clarification.

I was able to reproduce this issue with a clean checkout of master (d9dc7b3) on ubuntu 14.04 and running the ./install-dev-dependencies.sh script