]>
Commit | Line | Data |
---|---|---|
532fdf4c MF |
1 | #!/usr/bin/env python3 |
2 | # Copyright (C) 2021 Free Software Foundation, Inc. | |
3 | # | |
4 | # This program is free software: you can redistribute it and/or modify it under | |
5 | # the terms of the GNU Lesser General Public License as published by the Free | |
6 | # Software Foundation, either version 3 of the License, or at your option) any | |
7 | # later version. | |
8 | # | |
9 | # This program is distributed in the hope that it will be useful, but WITHOUT | |
10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
11 | # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |
12 | # details. | |
13 | # | |
14 | # You should have received a copy of the GNU Lesser General Public License | |
15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
16 | ||
17 | """Wrapper to run tests directly out of git.""" | |
18 | ||
19 | from pathlib import Path | |
20 | import sys | |
21 | ||
22 | import pytest | |
23 | ||
24 | TOPDIR = Path(__file__).resolve().parent | |
25 | sys.path.insert(0, str(TOPDIR / "src")) | |
26 | ||
27 | sys.exit(pytest.console_main()) |