diff options
author | Antti Kokko <antti.kokko@qt.io> | 2022-10-24 07:09:53 +0000 |
---|---|---|
committer | Antti Kokko <antti.kokko@qt.io> | 2022-10-26 12:28:37 +0000 |
commit | 6875087b7b19b7d808aa037280ebcb41a56d5e38 (patch) | |
tree | f7c162973b153c92eace97e2b8fae00368afc85c /packaging-tools/tests | |
parent | 64b709d4b422e6d59f9e703fbc1124dd3f77d556 (diff) |
Revert "Revert "Use logging functions from logging_util.py""
This reverts commit 64b709d4b422e6d59f9e703fbc1124dd3f77d556.
Reason for revert: required dependent changes are done, we can bring this change back
Change-Id: I1692b433eda3fd2a1e5aa541785dae942cbd1665
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io>
Diffstat (limited to 'packaging-tools/tests')
-rw-r--r-- | packaging-tools/tests/test_build_wrapper.py | 1 | ||||
-rwxr-xr-x | packaging-tools/tests/test_packaging.py | 4 | ||||
-rwxr-xr-x | packaging-tools/tests/test_release_repo_updater.py | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/packaging-tools/tests/test_build_wrapper.py b/packaging-tools/tests/test_build_wrapper.py index 036bd1d0e..1834f9868 100644 --- a/packaging-tools/tests/test_build_wrapper.py +++ b/packaging-tools/tests/test_build_wrapper.py @@ -68,7 +68,6 @@ class TestBuildWrapper(unittest.TestCase): remote_path_base = os.path.join(temp_dir, project_name, version_branch) remote_path_snapshot_dir = os.path.join(remote_path_base, build_number) remote_path_latest_link = os.path.join(remote_path_base, 'latest') - print(remote_path_latest_link) self.assertTrue(os.path.isdir(remote_path_base)) self.assertTrue(os.path.isdir(remote_path_snapshot_dir)) self.assertTrue(os.path.islink(remote_path_latest_link)) diff --git a/packaging-tools/tests/test_packaging.py b/packaging-tools/tests/test_packaging.py index c31f33a59..b466d9f8e 100755 --- a/packaging-tools/tests/test_packaging.py +++ b/packaging-tools/tests/test_packaging.py @@ -141,8 +141,8 @@ class TestPackaging(unittest.TestCase): idx = 0 for line in FileInput(temp_file, inplace=False): - print(f"Received data: [{line.strip()}] expected data: [{expected_data[idx]}]") - self.assertEqual(line.strip(), expected_data[idx], f"Received data: [{line}] differs from expected data: [{expected_data[idx]}]") + msg = f"Received data: [{line}] differs from expected data: [{expected_data[idx]}]" + self.assertEqual(line.strip(), expected_data[idx], msg) idx += 1 finally: rmtree(temp_dir) diff --git a/packaging-tools/tests/test_release_repo_updater.py b/packaging-tools/tests/test_release_repo_updater.py index bd2708dc5..9c5b2cbcf 100755 --- a/packaging-tools/tests/test_release_repo_updater.py +++ b/packaging-tools/tests/test_release_repo_updater.py @@ -272,7 +272,6 @@ class TestReleaseRepoUpdater(unittest.TestCase): ([""], [""]) ) async def test_format_task_filters(self, task_filters: List[str], exp_result: bool) -> None: - print("test") self.assertEqual(format_task_filters(task_filters), exp_result) @asyncio_test_parallel_data( # type: ignore |