]>
git.wh0rd.org - gnudebbugs.git/blob - pytest
2 # Copyright (C) 2021 Free Software Foundation, Inc.
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
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
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/>.
17 """Wrapper to run tests directly out of git."""
19 from pathlib
import Path
24 TOPDIR
= Path(__file__
).resolve().parent
25 sys
.path
.insert(0, str(TOPDIR
/ "src"))
27 sys
.exit(pytest
.console_main())