Detect isKernel better in service tests

Change-Id: I38ef62dd7db1dbda8bdc0477d16f92192cf8bff3
Reviewed-on: https://dart-review.googlesource.com/68621
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
diff --git a/runtime/observatory/tests/service/service.status b/runtime/observatory/tests/service/service.status
index ccbe75b..daee1cb 100644
--- a/runtime/observatory/tests/service/service.status
+++ b/runtime/observatory/tests/service/service.status
@@ -78,12 +78,6 @@
 [ $mode == debug && ($arch == simarm || $arch == simarm64) ]
 *: SkipSlow
 
-[ $runtime == vm && ($compiler == app_jit || $compiler == none) ]
-coverage_leaf_function_test: RuntimeError
-coverage_optimized_function_test: RuntimeError
-get_object_rpc_test: RuntimeError # Spawned process runs in Dart2 mode
-get_source_report_test: RuntimeError # Spawned process runs in Dart2 mode
-
 [ !$strong && ($compiler == dartk || $compiler == dartkp) ]
 *: Skip
 
diff --git a/runtime/observatory/tests/service/service_test_common.dart b/runtime/observatory/tests/service/service_test_common.dart
index 15f0007..e9add47 100644
--- a/runtime/observatory/tests/service/service_test_common.dart
+++ b/runtime/observatory/tests/service/service_test_common.dart
@@ -554,6 +554,7 @@
 bool isKernel() {
   for (String argument in Platform.executableArguments) {
     if (argument.startsWith("--no-preview_dart_2")) return false;
+    if (argument.startsWith("--no-preview-dart-2")) return false;
   }
   return true;
 }