#!/usr/bin/env python2 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import os from calibre.utils.run_tests import find_tests_in_dir, run_tests def find_tests(): base = os.path.dirname(os.path.abspath(__file__)) return find_tests_in_dir(base) if __name__ == '__main__': try: import init_calibre # noqa except ImportError: pass run_tests(find_tests)
#!/usr/bin/env python2 # vim:fileencoding=utf-8 from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' import os from calibre.utils.run_tests import find_tests_in_dir, run_tests def find_tests(): base = os.path.dirname(os.path.abspath(__file__)) return find_tests_in_dir(base) if __name__ == '__main__': try: import init_calibre # noqa except ImportError: pass run_tests(find_tests)
def run_tests(): from calibre.utils.run_tests import run_tests run_tests(find_tests)
os.mkdir('ready') time.sleep(30) finally: if release_mutex is not None: release_mutex() def other4(): cache_dir.ans = os.getcwd() tdir_in_cache('t') time.sleep(30) def other5(): cache_dir.ans = os.getcwd() if not os.path.isdir(tdir_in_cache('t')): raise SystemExit(1) def find_tests(): return unittest.defaultTestLoader.loadTestsFromTestCase(IPCLockTest) def run_tests(): from calibre.utils.run_tests import run_tests run_tests(find_tests) if __name__ == '__main__': run_tests()