From 78114a6a30ded1db7d940272e25859b006f48321 Mon Sep 17 00:00:00 2001 From: Anton Utz Date: Mon, 25 Mar 2024 12:31:04 +0100 Subject: [PATCH] adapted first test Signed-off-by: Anton Utz --- test/systemtest/test_separate_pkgs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/systemtest/test_separate_pkgs.py b/test/systemtest/test_separate_pkgs.py index 1b1e5f7..68b6777 100644 --- a/test/systemtest/test_separate_pkgs.py +++ b/test/systemtest/test_separate_pkgs.py @@ -54,9 +54,9 @@ def test_pkg_both_tags_not_spdx(self): """ Test on a package that has two different Licenses that both have a not SPDX conform Tag. License files and source files are SPDX conform""" - self.assertEqual(os.EX_OK, main([ - "test/_test_data/test_pkg_both_tags_not_spdx" - ])) + process, stdout = open_subprocess("test_pkg_both_tags_not_spdx") + self.assertEqual(os.EX_OK, process.returncode) + self.assertIn(b"LicenseTagIsInSpdxListCheck\n\x1b[93m WARNING", stdout) def test_pkg_both_tags_not_spdx_one_file_own(self): """Test on a package that has two licenses. One is self-defined, other