Run service test on py3 + unprivileged on docker. (#19841)

* Run service test on py3 + unprivileged on docker.
* Fix service integration test for python 3.
This commit is contained in:
Matt Clay 2017-01-04 15:55:57 -08:00 committed by GitHub
parent a1d30c853c
commit 709a3aa42b
3 changed files with 3 additions and 6 deletions

View file

@ -1,6 +1,4 @@
destructive
needs/privileged
posix/ci/group1
skip/freebsd
skip/osx
skip/python3

View file

@ -21,7 +21,7 @@ def createDaemon():
try:
pid = os.fork()
except OSError as e:
raise Exception, "%s [%d]" % (e.strerror, e.errno)
raise Exception("%s [%d]" % (e.strerror, e.errno))
if (pid == 0):
os.setsid()
@ -29,7 +29,7 @@ def createDaemon():
try:
pid = os.fork()
except OSError as e:
raise Exception, "%s [%d]" % (e.strerror, e.errno)
raise Exception("%s [%d]" % (e.strerror, e.errno))
if (pid == 0):
os.chdir(WORKDIR)

View file

@ -6,7 +6,6 @@
assert:
that:
- "install_result.dest == '/usr/sbin/ansible_test_service'"
- "install_result.checksum == '4e0164ceb9a5aeab76b38483ffd27fe791baa9f4'"
- "install_result.state == 'file'"
- "install_result.mode == '0755'"