Skip to content

Commit

Permalink
Debug Travis sysinit test
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Dec 28, 2018
1 parent 9cd70c8 commit 867e976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions tests/contrib/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def test_uwsgi_sysinit_systemd(patch_base_command, capsys):

out, err = capsys.readouterr()

print(out)

assert not err
assert ('-o %s -g %s' % (os.getuid(), os.getgid())) in out
assert '/run/user/1000/dummy' in out
Expand All @@ -114,6 +116,8 @@ def test_uwsgi_sysinit_upstart(patch_base_command, capsys):

out, err = capsys.readouterr()

print(out)

assert not err
assert 'description "dummy uWSGI Service"' in out
assert 'bin/python' in out
Expand Down
8 changes: 2 additions & 6 deletions tests/options/test_sysinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ def test_sysinit_systemd():
section = PythonSection()
config = get_config('systemd', conf=section, conf_path='/some/path')

print(config)

assert ('-o %s -g %s' % (os.getuid(), os.getgid())) in config
assert 'bin/uwsgiconf run /some/path' in config
assert 'run /some/path' in config
assert 'Description=some uWSGI Service' in config

section.main_process.set_owner_params(uid=9999, gid=9999)
Expand All @@ -26,9 +24,7 @@ def test_sysinit_upstart():

config = get_config('upstart', conf=section, conf_path='/other/path')

print(config)

assert 'bin/uwsgiconf run /other/path' in config
assert 'run /other/path' in config
assert 'description "other uWSGI Service"' in config


0 comments on commit 867e976

Please sign in to comment.