From bb4ac3c6c479b83e2beac305e687c99b2723a7a6 Mon Sep 17 00:00:00 2001 From: bcsgh <33939446+bcsgh@users.noreply.github.com> Date: Tue, 18 Mar 2025 18:11:14 -0700 Subject: [PATCH] Reverse the polarity to fix a bug. --- test/BUILD.bazel | 2 -- test/runjsontests.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/BUILD.bazel b/test/BUILD.bazel index 1e83c2d..269cd86 100644 --- a/test/BUILD.bazel +++ b/test/BUILD.bazel @@ -3,8 +3,6 @@ filegroup( srcs = glob(["data/**", "jsonchecker/**"], exclude=["**/*.json"]), ) -######## - [py_test( name = "runjson_%s_test" % "_".join(f.split("/")), srcs = ["runjsontests.py"], diff --git a/test/runjsontests.py b/test/runjsontests.py index 3099195..14275ec 100644 --- a/test/runjsontests.py +++ b/test/runjsontests.py @@ -102,8 +102,8 @@ def runAllTests(jsontest_executable_path, input_path = None, tests = [ test for test in tests - if os.path.basename(test) not in known and - os.path.basename(os.path.dirname(test)) == "jsonchecker" + if os.path.basename(test) not in known or + os.path.basename(os.path.dirname(test)) != "jsonchecker" ] failed_tests = []