Yang-system-test fails with non-zero exit code, if zero yang files
were found.
Change-Id: Id9f1b08e2e937d009a029202df1591b93a1510f1
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
static SchemaContext parseYangSources(final StatementStreamSource[] testSources,
final StatementStreamSource[] libSources, final Set<QName> supportedFeatures) throws ReactorException {
+ Preconditions.checkArgument(testSources != null && testSources.length > 0, "No yang sources");
final CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR
.newBuild(supportedFeatures);