test: Add continuous testing for run-test --jvm

Add testrunner.py --jvm flag which runs run-test --jvm.

The default is still only --host, --target, but if --jvm is specified
by itself then only jvm tests will run.

Also change art-test-javac continuous test target to run with --jvm.

This is a pre-requisite to swapping our non-jvm test targets to build
with libcore instead of openjdk.

Bug: 72491947
Bug: 73888836
Test: art/test/testrunner/testrunner.py -b --jvm
Test: art/test/testrunner/testrunner.py -b --host
Test: art/test/testrunner/run_build_test_target.py art-test-javac
Change-Id: I114327008d57e88409d36ac6713b809e593f7802
diff --git a/test/knownfailures.json b/test/knownfailures.json
index b2e2867..cc3d200 100644
--- a/test/knownfailures.json
+++ b/test/knownfailures.json
@@ -673,5 +673,304 @@
         "env_vars": {"SANITIZE_HOST": "address"},
         "bug": "b/73060923",
         "description": ["ASAN issue"]
+    },
+    {
+        "tests": ["1941-dispose-stress", "522-checker-regression-monitor-exit"],
+        "variant": "jvm",
+        "bug": "b/73888836",
+        "description": ["Hangs forever, times out."]
+    },
+    {
+        "tests": [
+          "004-JniTest",
+          "004-NativeAllocations",
+          "004-ReferenceMap",
+          "004-SignalTest",
+          "004-StackWalk",
+          "004-ThreadStress",
+          "004-UnsafeTest",
+          "005-annotations",
+          "008-exceptions",
+          "020-string",
+          "021-string2",
+          "030-bad-finalizer",
+          "031-class-attributes",
+          "034-call-null",
+          "038-inner-null",
+          "044-proxy",
+          "046-reflect",
+          "064-field-access",
+          "068-classloader",
+          "070-nio-buffer",
+          "071-dexfile",
+          "071-dexfile-get-static-size",
+          "071-dexfile-map-clean",
+          "082-inline-execute",
+          "086-null-super",
+          "087-gc-after-link",
+          "088-monitor-verification",
+          "091-override-package-private-method",
+          "097-duplicate-method",
+          "098-ddmc",
+          "099-vmdebug",
+          "100-reflect2",
+          "104-growth-limit",
+          "111-unresolvable-exception",
+          "115-native-bridge",
+          "116-nodex2oat",
+          "117-nopatchoat",
+          "118-noimage-dex2oat",
+          "119-noimage-patchoat",
+          "127-checker-secondarydex",
+          "129-ThreadGetId",
+          "130-hprof",
+          "1337-gc-coverage",
+          "1338-gc-no-los",
+          "134-nodex2oat-nofallback",
+          "134-reg-promotion",
+          "135-MirandaDispatch",
+          "136-daemon-jni-shutdown",
+          "137-cfi",
+          "138-duplicate-classes-check",
+          "138-duplicate-classes-check2",
+          "140-field-packing",
+          "141-class-unload",
+          "142-classloader2",
+          "143-string-value",
+          "144-static-field-sigquit",
+          "145-alloc-tracking-stress",
+          "146-bad-interface",
+          "147-stripped-dex-fallback",
+          "148-multithread-gc-annotations",
+          "150-loadlibrary",
+          "154-gc-loop",
+          "156-register-dex-file-multi-loader",
+          "157-void-class",
+          "158-app-image-class-table",
+          "159-app-image-fields",
+          "161-final-abstract-class",
+          "162-method-resolution",
+          "163-app-image-methods",
+          "164-resolution-trampoline-dex-cache",
+          "167-visit-locks",
+          "168-vmstack-annotated",
+          "201-built-in-except-detail-messages",
+          "203-multi-checkpoint",
+          "304-method-tracing",
+          "305-other-fault-handler",
+          "412-new-array",
+          "416-optimizing-arith-not",
+          "425-invoke-super",
+          "431-type-propagation",
+          "432-optimizing-cmp",
+          "434-invoke-direct",
+          "435-new-instance",
+          "441-checker-inliner",
+          "442-checker-constant-folding",
+          "448-multiple-returns",
+          "449-checker-bce",
+          "452-multiple-returns2",
+          "453-not-byte",
+          "454-get-vreg",
+          "455-checker-gvn",
+          "457-regs",
+          "458-checker-instruct-simplification",
+          "459-dead-phi",
+          "460-multiple-returns3",
+          "461-get-reference-vreg",
+          "466-get-live-vreg",
+          "467-regalloc-pair",
+          "468-checker-bool-simplif-regression",
+          "471-uninitialized-locals",
+          "472-unreachable-if-regression",
+          "475-regression-inliner-ids",
+          "480-checker-dead-blocks",
+          "496-checker-inlining-class-loader",
+          "498-type-propagation",
+          "501-null-constant-dce",
+          "501-regression-packed-switch",
+          "503-dead-instructions",
+          "504-regression-baseline-entry",
+          "506-verify-aput",
+          "509-pre-header",
+          "510-checker-try-catch",
+          "511-clinit-interface",
+          "515-dce-dominator",
+          "516-dead-move-result",
+          "517-checker-builder-fallthrough",
+          "518-null-array-get",
+          "520-equivalent-phi",
+          "529-checker-unresolved",
+          "530-checker-lse",
+          "530-checker-lse-ctor-fences",
+          "530-checker-lse3",
+          "530-checker-regression-reftyp-final",
+          "536-checker-intrinsic-optimization",
+          "536-checker-needs-access-check",
+          "541-regression-inlined-deopt",
+          "543-env-long-ref",
+          "545-tracing-and-jit",
+          "550-checker-regression-wide-store",
+          "551-invoke-super",
+          "552-checker-primitive-typeprop",
+          "552-invoke-non-existent-super",
+          "553-invoke-super",
+          "556-invoke-super",
+          "559-checker-irreducible-loop",
+          "563-checker-fakestring",
+          "564-checker-irreducible-loop",
+          "565-checker-doublenegbitwise",
+          "565-checker-irreducible-loop",
+          "566-polymorphic-inlining",
+          "567-checker-compare",
+          "569-checker-pattern-replacement",
+          "570-checker-osr",
+          "571-irreducible-loop",
+          "574-irreducible-and-constant-area",
+          "575-checker-string-init-alias",
+          "580-checker-string-fact-intrinsics",
+          "585-inline-unresolved",
+          "586-checker-null-array-get",
+          "587-inline-class-error",
+          "588-checker-irreducib-lifetime-hole",
+          "591-new-instance-string",
+          "592-checker-regression-bool-input",
+          "593-checker-boolean-2-integral-conv",
+          "593-checker-shift-and-simplifier",
+          "594-invoke-super",
+          "595-error-class",
+          "595-profile-saving",
+          "596-app-images",
+          "596-checker-dead-phi",
+          "596-monitor-inflation",
+          "597-deopt-busy-loop",
+          "597-deopt-invoke-stub",
+          "597-deopt-new-string",
+          "599-checker-irreducible-loop",
+          "600-verifier-fails",
+          "601-method-access",
+          "602-deoptimizeable",
+          "605-new-string-from-bytes",
+          "608-checker-unresolved-lse",
+          "612-jit-dex-cache",
+          "613-inlining-dex-cache",
+          "616-cha",
+          "616-cha-abstract",
+          "616-cha-interface",
+          "616-cha-interface-default",
+          "616-cha-miranda",
+          "622-simplifyifs-exception-edges",
+          "624-checker-stringops",
+          "626-const-class-linking",
+          "628-vdex",
+          "629-vdex-speed",
+          "630-safecast-array",
+          "631-checker-fp-abs",
+          "633-checker-rtp-getclass",
+          "634-vdex-duplicate",
+          "636-wrong-static-access",
+          "638-checker-inline-cache-intrinsic",
+          "638-checker-inline-caches",
+          "638-no-line-number",
+          "641-irreducible-inline",
+          "643-checker-bogus-ic",
+          "645-checker-abs-simd",
+          "647-jni-get-field-id",
+          "647-sinking-catch",
+          "648-inline-caches-unresolved",
+          "649-vdex-duplicate-method",
+          "652-deopt-intrinsic",
+          "656-annotation-lookup-generic-jni",
+          "656-checker-simd-opt",
+          "659-unpadded-array",
+          "660-clinit",
+          "660-store-8-16",
+          "661-classloader-allocator",
+          "661-oat-writer-layout",
+          "663-checker-select-generator",
+          "663-odd-dex-size",
+          "663-odd-dex-size2",
+          "663-odd-dex-size3",
+          "663-odd-dex-size4",
+          "667-jit-jni-stub",
+          "667-out-of-bounds",
+          "668-aiobe",
+          "674-hiddenapi",
+          "674-hotness-compiled",
+          "674-vdex-uncompress",
+          "675-checker-unverified-method",
+          "676-proxy-jit-at-first-use",
+          "676-resolve-field-type",
+          "706-checker-scheduler",
+          "707-checker-invalid-profile",
+          "714-invoke-custom-lambda-metafactory",
+          "800-smali",
+          "801-VoidCheckCast",
+          "802-deoptimization",
+          "804-class-extends-itself",
+          "900-hello-plugin",
+          "901-hello-ti-agent",
+          "903-hello-tagging",
+          "904-object-allocation",
+          "906-iterate-heap",
+          "909-attach-agent",
+          "910-methods",
+          "911-get-stack-trace",
+          "912-classes",
+          "913-heaps",
+          "918-fields",
+          "920-objects",
+          "922-properties",
+          "924-threads",
+          "925-threadgroups",
+          "927-timers",
+          "929-search",
+          "931-agent-thread",
+          "933-misc-events",
+          "936-search-onload",
+          "939-hello-transformation-bcp",
+          "944-transform-classloaders",
+          "946-obsolete-throw",
+          "948-change-annotations",
+          "950-redefine-intrinsic",
+          "952-invoke-custom",
+          "954-invoke-polymorphic-verifier",
+          "955-methodhandles-smali",
+          "956-methodhandles",
+          "957-methodhandle-transforms",
+          "958-methodhandle-stackframe",
+          "972-default-imt-collision",
+          "972-iface-super-multidex",
+          "973-default-multidex",
+          "974-verify-interface-super",
+          "975-iface-private",
+          "976-conflict-no-methods",
+          "978-virtual-interface",
+          "980-redefine-object",
+          "981-dedup-original-dex",
+          "983-source-transform-verify",
+          "986-native-method-bind",
+          "988-method-trace",
+          "989-method-trace-throw",
+          "993-breakpoints",
+          "1900-track-alloc",
+          "1906-suspend-list-me-first",
+          "1914-get-local-instance",
+          "1926-missed-frame-pop",
+          "1930-monitor-info",
+          "1932-monitor-events-misc",
+          "1935-get-set-current-frame-jit",
+          "1938-transform-abstract-single-impl",
+          "1939-proxy-frames",
+          "1940-ddms-ext",
+          "1945-proxy-method-arguments",
+          "1946-list-descriptors",
+          "1947-breakpoint-redefine-deopt"
+        ],
+        "variant": "jvm",
+        "bug": "b/73888836",
+        "description": ["Failing on JVM. Needs further investigating."]
     }
+
+
 ]