Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zoewangg committed May 8, 2024
1 parent 3301b08 commit 4665d83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions test/migration-tool-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
<artifactId>aws-java-sdk-s3</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>migration-tool</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test/migration-tool-tests/src/test/resources/run-test
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def run_test(version):
is_same = compare_directory(filecmp.dircmp(TARGET_DIR, AFTER_DIR))
if not is_same:
raise Exception("The transformed directory('target/generated-test-sources/project') does not match with the expected one('src/test/resources/after')")
result = subprocess.run(["mvn", "clean", "package"], cwd=TARGET_DIR, capture_output=True)
result = subprocess.run(["mvn", "package"], cwd=TARGET_DIR, capture_output=True, check=True)
print(result)

def compare_directory(dcmp):
Expand Down

0 comments on commit 4665d83

Please sign in to comment.