EFForg / OpenWireless

The official home of the EFF OpenWireless Project
Other
732 stars 80 forks source link

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

Open Rangak opened 9 years ago

Rangak commented 9 years ago

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.
Rangak commented 9 years ago

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

Rangak commented 9 years ago

With next commit:

https://github.com/EFForg/OpenWireless/commit/86486099954c71ff3ca70630a57d29fbf5136931

this bug has reappeared.

Rangak commented 9 years ago

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.

errolpais commented 9 years ago

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