File no-bzr-hg-tests.patch of Package obs-service-tar_scm

From 9d7559734ea429aff6cea6e8738b11008ca5ab4a Mon Sep 17 00:00:00 2001
From: Frank Schreiner <schreiner@suse.de>
Date: Wed, 19 Feb 2025 14:36:54 +0100
Subject: [PATCH] disabling test cases for bzr and hg

* both tools getting obsolete
* hg tests are horrible slow
* bzr is no longer in Factory
---
 tests/test.py |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Index: obs-service-tar_scm-0.10.46/tests/test.py
===================================================================
--- obs-service-tar_scm-0.10.46.orig/tests/test.py	2024-08-01 14:39:20.000000000 +0200
+++ obs-service-tar_scm-0.10.46/tests/test.py	2025-03-12 11:32:23.292405996 +0100
@@ -34,18 +34,23 @@
         # If you are only interested in a particular VCS, you can
         # temporarily comment out any of these or use the env variable
         # TAR_SCM_TC=<comma_separated_list> test.py
-        # export TAR_SCM_TC=UnitTestCases,TasksTestCases,SCMBaseTestCases,GitTests,SvnTests,HgTests,TarTestCases # noqa # pylint: disable=line-too-long
+        # export TAR_SCM_TC=UnitTestCases,TasksTestCases,SCMBaseTestCases,GitTests,SvnTests,TarTestCases # noqa # pylint: disable=line-too-long
+        HgTests,  # disabled because of a lack of performance
+        BzrTests, # disabled as bzr is no longer part of Factory
         UnitTestCases,
         TasksTestCases,
         ArchiveOBSCpioTestCases,
         SCMBaseTestCases,
         GitTests,
         SvnTests,
-        HgTests,
-        TarTestCases,
-        BzrTests
+        TarTestCases
     ]
 
+    # quite ugly to remove them here
+    # but this way no linter complains about unused import
+    tclasses.pop(1)
+    tclasses.pop(1)
+
     if os.getenv('TAR_SCM_TC'):
         tclasses = []
         for classname in os.environ['TAR_SCM_TC'].split(','):
openSUSE Build Service is sponsored by