File size: 419 Bytes
0c6aadc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | """Run a single test (argv[1] = pytest selector) against the local build."""
import os
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, ROOT)
import load_local
mod = load_local.load()
import kernels
kernels.get_kernel = lambda *a, **k: mod
import pytest
sys.exit(pytest.main([sys.argv[1], "-x", "-q", "--tb=long", "-p",
"no:cacheprovider"]))
|