Skip to content

Commit

Permalink
Fix problem for test from bad folder
Browse files Browse the repository at this point in the history
  • Loading branch information
algorys committed Jul 13, 2016
1 parent e34645d commit 5bb99ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ script:
# Code dynamic analysis
# - cd test
- coverage erase
- nosetests -xv --nologcapture --with-coverage --cover-package=alignak_app test/test_*.py
- cd test/
- nosetests -xv --nologcapture --with-coverage --cover-package=alignak_app test_*.py
- coverage combine
- coverage report -m
# - cd ..
Expand Down
4 changes: 2 additions & 2 deletions test/test_alignak_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_connection(self):
under_test = AlignakData()

config = cfg.ConfigParser()
config.read('./etc/settings.cfg')
config.read('etc/settings.cfg')

under_test.log_to_backend(config)

Expand All @@ -47,7 +47,7 @@ def test_if_hosts_and_services(self):
under_test = AlignakData()

config = cfg.ConfigParser()
config.read('./etc/settings.cfg')
config.read('etc/settings.cfg')

under_test.log_to_backend(config)

Expand Down

0 comments on commit 5bb99ca

Please sign in to comment.