aboutsummaryrefslogtreecommitdiff
path: root/bigtop-tests/spec-tests
diff options
context:
space:
mode:
authorgray <gray@bdavm574.svl.ibm.com>2016-03-24 12:42:16 -0700
committerRoman Shaposhnik <rvs@apache.org>2017-03-23 10:27:01 -0700
commitaaed995f5447a18a26be9a30afc3558e2eb6bdf6 (patch)
tree67caaae641da84aec89c4b46dbddad7b34cd6c40 /bigtop-tests/spec-tests
parenta837a6d935829f0626a53fa3f518d40e7c77428a (diff)
ODPI-115: Fixed formatting as per Cos's comments
(cherry picked from commit 20fcf9bf4c60456724f4d1f6eaba6d167d44a7ea)
Diffstat (limited to 'bigtop-tests/spec-tests')
-rw-r--r--bigtop-tests/spec-tests/runtime/src/test/groovy/org/odpi/specs/runtime/TestSpecsRuntime.groovy27
1 files changed, 13 insertions, 14 deletions
diff --git a/bigtop-tests/spec-tests/runtime/src/test/groovy/org/odpi/specs/runtime/TestSpecsRuntime.groovy b/bigtop-tests/spec-tests/runtime/src/test/groovy/org/odpi/specs/runtime/TestSpecsRuntime.groovy
index 52e36251..5133b486 100644
--- a/bigtop-tests/spec-tests/runtime/src/test/groovy/org/odpi/specs/runtime/TestSpecsRuntime.groovy
+++ b/bigtop-tests/spec-tests/runtime/src/test/groovy/org/odpi/specs/runtime/TestSpecsRuntime.groovy
@@ -134,32 +134,31 @@ public class TestSpecsRuntime {
def actualFiles = []
def missingFiles = []
if ( ! root.exists() ) {
- Assert.assertFail("${testName} fail: ${baseDirEnv} does not exist!");
+ Assert.assertFail("${testName} fail: ${baseDirEnv} does not exist!");
}
root.eachFileRecurse(FileType.ANY) { file ->
- def relPath = new File( root.toURI().relativize( file.toURI() ).toString() ).path
- actualFiles << relPath
+ def relPath = new File( root.toURI().relativize( file.toURI() ).toString() ).path
+ actualFiles << relPath
}
expectedFiles.each { wantFile ->
- def ok = false
- for (def x : actualFiles) {
- if (actualFiles =~ wantFile) {
- ok = true
- break
- }
- }
- if (!ok) {
- missingFiles << wantFile
- }
+ def ok = false
+ for (def x : actualFiles) {
+ if (actualFiles =~ wantFile) {
+ ok = true
+ break
+ }
+ }
+ if (!ok) {
+ missingFiles << wantFile
+ }
}
Assert.assertTrue("${testName} fail: Directory structure for ${baseDirEnv} does not match reference. Missing files: ${missingFiles} ",
missingFiles.size() == 0)
break
-
case 'dircontent':
def expectedFiles = []
new File("${testsList}", "${arguments['referenceList']}").eachLine { line ->