scripts: Add database error check to spec.py
Fix broken database line where delimiter was incorrect.
Add check to spec.py script to detect if database line doesn't contain
expected number of elements and report error in that case.
diff --git a/layers/spec.py b/layers/spec.py
index 5967ff9..ceb7724 100644
--- a/layers/spec.py
+++ b/layers/spec.py
@@ -233,6 +233,8 @@
continue
line = line.strip()
db_line = line.split(self.delimiter)
+ if len(db_line) != 4:
+ print "ERROR: Bad database line doesn't have 4 elements: %s" % (line)
error_enum = db_line[0]
implemented = db_line[1]
testname = db_line[2]