tests: Fix a typo for the default MI_example protocol
authorSean Wilson <spwilson2@wisc.edu>
Thu, 15 Jun 2017 16:56:13 +0000 (11:56 -0500)
committerSean Wilson <spwilson2@wisc.edu>
Fri, 16 Jun 2017 15:35:54 +0000 (15:35 +0000)
Change-Id: I1c88ba45e4fee3c254db06cac46045dfe6e68524
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3795
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

tests/testing/tests.py

index a83f5988bc26ed35b61e61d129e2ec8f846e12a6..839eb969f34a0c5f54bf31b0ee0ea3b30f539dc5 100755 (executable)
@@ -166,10 +166,7 @@ default_ruby_protocol = {
 }
 
 def get_default_protocol(arch):
-    try:
-        return default_ruby_protocol[arch]
-    except KeyError:
-        return 'MI-example'
+    return default_ruby_protocol.get(arch, 'MI_example')
 
 all_categories = ("quick", "long")
 all_modes = ("fs", "se")