Skip to content

Commit

Permalink
Fix broken requirement: Python 2.6 requirements!
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Feb 3, 2018
1 parent a12fc32 commit 9974d23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ matrix:
- python: "2.6"
env: TEST_SUITE=virtualenv

services:
- mongodb

install:
# Remove python warnings
- unset PYTHONWARNINGS
Expand Down
10 changes: 9 additions & 1 deletion test_run/test_launch_daemons_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,15 @@ def _run_daemons_modules(self, cfg_folder='../etc',

print("Testing that pid files and log files exist...")
for daemon in ['arbiter']:
assert os.path.exists('/tmp/%sd.pid' % daemon), '/tmp/%sd.pid does not exist!' % daemon
if not os.path.exists('/tmp/%sd.pid' % daemon):
print('/tmp/%sd.pid does not exist!' % daemon)
assert os.path.exists('/tmp/%sd.log' % daemon), '/tmp/%sd.log does not exist!' % daemon
daemon_errors = False
print("-----\n%s log file\n-----\n" % daemon)
with open('/tmp/%sd.log' % daemon) as f:
for line in f:
print(line[:-1])
return 999
assert os.path.exists('/tmp/%sd.log' % daemon), '/tmp/%sd.log does not exist!' % daemon

# Let the arbiter build and dispatch its configuration
Expand Down

0 comments on commit 9974d23

Please sign in to comment.