Skip to content

Commit

Permalink
Fix incorrect search string in test7 (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalluck authored Apr 17, 2024
1 parent 700585e commit 1bee59e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/it/test7-nosrcpkg/verify.groovy
Original file line number Diff line number Diff line change
@@ -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/ } );
4 changes: 2 additions & 2 deletions src/it/test7-srcpkg2/verify.groovy
Original file line number Diff line number Diff line change
@@ -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/ };

0 comments on commit 1bee59e

Please sign in to comment.