diff --git a/src/it/test7-nosrcpkg/verify.groovy b/src/it/test7-nosrcpkg/verify.groovy index 63470bb..017f8a5 100644 --- a/src/it/test7-nosrcpkg/verify.groovy +++ b/src/it/test7-nosrcpkg/verify.groovy @@ -1,8 +1,8 @@ -Process rpm = ("rpm -qip " + basedir + "/target/test7.rpm").execute(); +Process rpm = ("rpm -qip " + basedir.toString().replace("\\", "/") + "/target/test7.rpm").execute(); def entries = rpm.in.readLines(); println entries; -return !entries.find { line -> line =~ /Source RPM : test7-.*\.src\.rpm/ }; +return ( !entries.isEmpty() && !entries.find { line -> line =~ /Source RPM : test7-.*\.src\.rpm/ } ); diff --git a/src/it/test7-srcpkg2/verify.groovy b/src/it/test7-srcpkg2/verify.groovy index f2fc055..fdfd16e 100644 --- a/src/it/test7-srcpkg2/verify.groovy +++ b/src/it/test7-srcpkg2/verify.groovy @@ -1,8 +1,8 @@ -Process rpm = ("rpm -qip " + basedir + "/target/test7.rpm").execute(); +Process rpm = ("rpm -qip " + basedir.toString().replace("\\", "/") + "/target/test7.rpm").execute(); def entries = rpm.in.readLines(); println entries; -return !entries.find { it == "foo.bar" }; +return entries.find { it =~ /Source RPM : foo\.bar/ };