summaryrefslogtreecommitdiff
path: root/debian/tests/python-upstream
blob: ed1c6027e2eb620b65a07c879c556f3b2b0c48d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python3 -B

import pytest
import os

tmpdir = os.getenv("AUTOPKGTEST_TMP")

if tmpdir is None:
    print("Need the environment variable AUTOPKGTEST_TMP.")
    exit(1)

cwd = os.getcwd()
test_path = cwd + "/cython/test"

os.chdir(tmpdir)

print("Running tests from %s with cwd %s." %(test_path, os.getcwd()))

exit(pytest.main([test_path]))