From 5d600a25436525aecd70252f247393978ae74e32 Mon Sep 17 00:00:00 2001 From: Joost Rijneveld Date: Wed, 10 Apr 2019 16:42:28 +0200 Subject: [PATCH] Split tests into primitives This ensures separate errors for separate common files --- test/test_common.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/test_common.py b/test/test_common.py index 0a96986b..ec7a593f 100644 --- a/test/test_common.py +++ b/test/test_common.py @@ -12,9 +12,13 @@ import helpers def test_common(): for d in os.listdir('common'): primitive = re.sub(r"\.c$", "", d) - binname = os.path.join('..', 'bin', 'test_'+primitive) - helpers.make(binname) - helpers.run_subprocess([binname]) + yield check_common, primitive + + +def check_common(primitive): + binname = os.path.join('..', 'bin', 'test_'+primitive) + helpers.make(binname) + helpers.run_subprocess([binname]) if __name__ == '__main__':