fi
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
pkg cwrap ${CWRAP_URL} ${CWRAP_TAG} lib/pkgconfig/socket_wrapper.pc
- pip install --user ${USER} -r ${PIP_PKGS}
+ pip install --user ${USER} -r ${PIP_PKGS} || true
rm ${HOME}/.cache/pip/log/debug.log || true
fi
# libuv
pkg libuv ${LIBUV_URL} ${LIBUV_TAG} include/uv.h --disable-static
# luajit
-pkg lua ${LUA_URL} ${LUA_TAG} include/lua.h install LDFLAGS=-lm PREFIX=${PREFIX}
+pkg lua ${LUA_URL} ${LUA_TAG} lib/pkgconfig/luajit.pc install LDFLAGS=-lm PREFIX=${PREFIX}
# remove on successful build
rm -rf ${BUILD_DIR}
net.listen('{{SELF_ADDR}}',53)
cache.size = 10*MB
-modules = {'hints'}
+modules = {'block','hints'}
hints.root({['k.root-servers.net'] = '{{ROOT_ADDR}}'})
option('NO_MINIMIZE', {{NO_MINIMIZE}})
option('ALLOW_LOCAL', true)
#!/usr/bin/env python
+import traceback
class Test:
""" Small library to imitate CMocka output. """
passed += 1
print('[ OK ] %s' % name)
except Exception as e:
- print('[ FAIL ] %s (%s)' % (name, str(e)))
+ print('[ FAIL ] %s (%s) at %s' % (name, str(e), traceback.print_exc()[0]))
# Clear test set
self.tests = []
return 0
else:
print('[ FAILED ] %d test(s).' % (planned - passed))
- return 1
\ No newline at end of file
+ return 1
server.start()
try:
server.play()
- except Exception as e:
- print('... scenario "%s" crashed, logs in "%s"' % (os.path.basename(path), TMPDIR))
finally:
server.stop()
daemon_proc.terminate()