Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit a58a7fd

Browse files
committed
setup: Add test option --skipcli
When smoke tests are failing and just want to do a quick run
1 parent a9230a1 commit a58a7fd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,13 @@ class TestCommand(TestBaseCommand):
9494
description = "Runs a quick unit test suite"
9595
user_options = TestBaseCommand.user_options + \
9696
[("testfile=", None, "Specific test file to run (e.g "
97-
"validation, storage, ...)")]
97+
"validation, storage, ...)"),
98+
("skipcli", None, "Skip CLI tests")]
9899

99100
def initialize_options(self):
100101
TestBaseCommand.initialize_options(self)
101102
self.testfile = None
103+
self.skipcli = None
102104

103105
def finalize_options(self):
104106
TestBaseCommand.finalize_options(self)
@@ -118,6 +120,8 @@ def run(self):
118120
check = os.path.basename(self.testfile)
119121
if base != check and base != (check + ".py"):
120122
continue
123+
if self.skipcli and base.count("clitest"):
124+
continue
121125

122126
testfiles.append('.'.join(['tests', os.path.splitext(base)[0]]))
123127

0 commit comments

Comments
 (0)