test: '{. -> ./run}/test_sources.py'

Move the runtime tests of source modules into the runtime-tests
subdirectory, so `make test-runtime` can pick them up.
This commit is contained in:
David Rheinsberg 2020-04-24 09:30:13 +02:00 committed by Christian Kellner
parent cecb27ac82
commit aaa8854437
3 changed files with 6 additions and 19 deletions

1
test/run/__init__.py Normal file
View file

@ -0,0 +1 @@
# The `unittest` module requires `__init__.py` to discover a directory.

View file

@ -1,3 +1,7 @@
#
# Runtime Tests for Source Modules
#
import contextlib
import ctypes
import http.server
@ -11,6 +15,7 @@ import unittest
import osbuild.sources
def errcheck(ret, _func, _args):
if ret == -1:
e = ctypes.get_errno()