gh: check_args needs ./... and some skipped tests (#48408)

This commit is contained in:
Wouter Deconinck 2025-01-06 09:40:30 -06:00 committed by GitHub
parent ee47d877ff
commit 227fa1a482
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,6 +58,20 @@ def build_args(self):
args.extend(["-trimpath", "./cmd/gh"])
return args
@property
def check_args(self):
args = super().check_args
skip_tests = (
"TestHasNoActiveToken|TestTokenStoredIn.*|"
"TestSwitchUser.*|TestSwitchClears.*|"
"TestTokenWorksRightAfterMigration|"
"Test_loginRun.*|Test_logoutRun.*|Test_refreshRun.*|"
"Test_setupGitRun.*|Test_CheckAuth|TestSwitchRun.*|"
"Test_statusRun.*|TestTokenRun.*"
)
args.extend([f"-skip={skip_tests}", "./..."])
return args
@run_after("install")
def install_completions(self):
gh = Executable(self.prefix.bin.gh)