summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocoltest.rb')
-rw-r--r--lib/custodian/protocoltest.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest.rb b/lib/custodian/protocoltest.rb
index 9a843c2..1a2f796 100644
--- a/lib/custodian/protocoltest.rb
+++ b/lib/custodian/protocoltest.rb
@@ -30,6 +30,15 @@ class ProtocolTest
#
#
def self.create( line )
+
+ #
+ # JSON ?
+ #
+ if ( line =~ /^\{(.*)\}$/ )
+ obj = JSON.parse( line );
+ line = obj["line"]
+ end
+
if ( line =~ /must\s+run\s+(\S+)(\s+|\.|$)/ )
test_type = $1.dup
test_type.chomp!( "." )