Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon committed Feb 11, 2025
1 parent 405607b commit bd8a0f6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/integration/plugins/test_jlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import yaml
from craft_parts import LifecycleManager, Step, errors


def test_jlink_plugin_embedded_jar(new_dir, partitions):
parts_yaml = textwrap.dedent(
"""
Expand Down Expand Up @@ -61,10 +62,18 @@ def test_jlink_plugin_embedded_jar(new_dir, partitions):
"""
)
subprocess.run(["javac", "Test.java", "Embedded.java"], check=True, capture_output=True)
subprocess.run(["jar", "cvf", "embedded.jar", "Embedded.class"], check=True, capture_output=True)
subprocess.run(
["jar", "cvf", "test.jar", "Test.class", "embedded.jar"], check=True, capture_output=True
["javac", "Test.java", "Embedded.java"], check=True, capture_output=True
)
subprocess.run(
["jar", "cvf", "embedded.jar", "Embedded.class"],
check=True,
capture_output=True,
)
subprocess.run(
["jar", "cvf", "test.jar", "Test.class", "embedded.jar"],
check=True,
capture_output=True,
)

lf = LifecycleManager(
Expand Down

0 comments on commit bd8a0f6

Please sign in to comment.