File: unit_tests.py

package info (click to toggle)
python-mitogen 0.3.43-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,816 kB
  • sloc: python: 24,940; sh: 144; makefile: 74; perl: 19; ansic: 18
file content (24 lines) | stat: -rwxr-xr-x 619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2026 Mitogen authors <https://github.com/mitogen-hq>
# SPDX-License-Identifier: BSD-3-Clause
from __future__ import absolute_import, division, print_function

import sys

import ci_lib
from ci_lib import subprocess

interesting = ci_lib.get_interesting_procs()

with ci_lib.Fold('unit_tests'):
    subprocess.run(
        [
            sys.executable, '-m', 'unittest', 'discover',
            '--start-directory', sys.argv[1],
            '--pattern', '*_test.py',
            '--verbose',
        ],
        check=True,
    )

ci_lib.check_stray_processes(interesting)