generator: add TestRunOrUnsupported test type

Create a new TestRunOrUnsupported test type, which represents a test
sequence where a failure with ENOTSUP in the last command only marks the
test as skipped.  To be used mainly when testing features available only
with some versions of helper tools used in the appliance, for example.
This commit is contained in:
Pino Toscano
2016-01-27 14:17:22 +01:00
parent 474e3051c7
commit ceefa701c6
3 changed files with 31 additions and 3 deletions

View File

@@ -266,7 +266,8 @@ let seq_of_test = function
| TestResultDevice (s, _)
| TestResultTrue s
| TestResultFalse s
| TestLastFail s -> s
| TestLastFail s
| TestRunOrUnsupported s -> s
let c_quote str =
let str = replace_str str "\\" "\\\\" in