Skip to content

Commit

Permalink
Better verify script in release finish test
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-m committed May 30, 2023
1 parent 401c692 commit d0487e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/it/release-finish-it/verify.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ try {
return false;
}

p = Runtime.getRuntime().exec("git --git-dir=" + basedir + "/.git --work-tree=" + basedir + " checkout develop");
p.waitFor();

File file = new File(basedir, "pom.xml");
File expectedFile = new File(basedir, "expected-development-pom.xml");

Expand All @@ -33,7 +36,7 @@ try {
expected = expected.replaceAll("\\r?\\n", "");

if (!expected.equals(actual)) {
System.out.println("release-finish expected: " + expected + " actual was:" + actual);
System.out.println("release-finish development pom expected: " + expected + " actual was:" + actual);
return false;
}

Expand All @@ -50,7 +53,7 @@ try {
expected = expected.replaceAll("\\r?\\n", "");

if (!expected.equals(actual)) {
System.out.println("release-finish expected: " + expected + " actual was:" + actual);
System.out.println("release-finish production pom expected: " + expected + " actual was:" + actual);
return false;
}

Expand Down

0 comments on commit d0487e2

Please sign in to comment.