From 2587474bbb0e670b5aa3475ec607a8a47712e6f9 Mon Sep 17 00:00:00 2001 From: Alex Liu Date: Fri, 28 Jul 2023 20:51:24 -0400 Subject: [PATCH] tests --- do_like_javac/tools/wpi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/do_like_javac/tools/wpi.py b/do_like_javac/tools/wpi.py index e8ae4ed..2d0b3ac 100644 --- a/do_like_javac/tools/wpi.py +++ b/do_like_javac/tools/wpi.py @@ -141,7 +141,7 @@ def run(args, javac_commands, jars): # can more easily remove key and value for release8, below: if v is not None and v is not True and k.startswith("-add-opens"): other_args.append("-" + k + "=" + v) - else: + else: if v is None or v is not False: other_args.append("-" + k) if v is not None and v is not True: @@ -179,6 +179,7 @@ def run(args, javac_commands, jars): pprint.pformat(jc) cmd = iterationCheckerCmd + ["-classpath", cp] + processorArg + other_args + java_files + print("final cmd ===================================: " + cmd); stats = common.run_cmd(cmd + ["-Ainfer=ajava", "-Awarns"], args, 'wpi') # process outputs