Skip to content

Commit

Permalink
Replaced target for Grandle, added output of failed command (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibragins authored Jul 16, 2024
1 parent c3ea5b5 commit 69b73b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"gradle-multi-project": {
"app_name": "gradle-multi-project",
"file_name": "gradle-multi-project-example",
"target": "azure-appservice",
"target": "openjdk",
"source": ""
}
}
2 changes: 1 addition & 1 deletion tests/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_transform_code_with_openrewrite(transformation_name, openrewrite_transf
command = f"{kantra_path} transform openrewrite --input {extracted_app_path} --target {application_data['target']}"

output = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, encoding='utf-8').stdout
assert 'BUILD SUCCESS' in output
assert 'BUILD SUCCESS' in output, "Failed command is: " + command

with open(
os.path.join(extracted_app_path, application_data['assertion_file']), 'r'
Expand Down

0 comments on commit 69b73b1

Please sign in to comment.