[llvm] [unittest] Add option to allow disabling sharding in unittest (PR #67063)
Joe Loser via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 23 01:16:23 PDT 2023
================
@@ -0,0 +1,105 @@
+#!/usr/bin/env python
+
+import os
+import sys
+
+if len(sys.argv) == 3 and sys.argv[1] == "--gtest_list_tests":
+ if sys.argv[2] != "--gtest_filter=-*DISABLED_*":
+ raise ValueError("unexpected argument: %s" % (sys.argv[2]))
----------------
JoeLoser wrote:
**Suggestion** Here and below, feel free to use f-strings since we require Python 3 nowadays.
https://github.com/llvm/llvm-project/pull/67063
More information about the llvm-commits
mailing list