Skip to content

Commit b9d3b7f

Browse files
committed
add st2_shell_sources_and_resources() to fixtures
1 parent d7600f7 commit b9d3b7f

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

pants-plugins/macros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def st2_shell_sources_and_resources(**kwargs):
2222
"""
2323
shell_sources(**kwargs) # noqa: F821
2424

25-
kwargs.pop("skip_shellcheck")
25+
kwargs.pop("skip_shellcheck", None)
2626

2727
kwargs["name"] += "_resources"
2828
resources(**kwargs) # noqa: F821

st2tests/st2tests/fixtures/generic/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
pack_metadata(
22
name="metadata",
3+
dependencies=[
4+
"./actions:shell",
5+
"./actions:shell_resources",
6+
],
37
)
48

59
python_sources(
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
shell_sources()
1+
st2_shell_sources_and_resources(
2+
name="shell",
3+
sources=["*.sh"],
4+
)

st2tests/st2tests/fixtures/packs/BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pack_metadata_in_git_submodule(
1313
],
1414
)
1515

16-
shell_sources(
16+
st2_shell_sources_and_resources(
1717
name="test_content_version_shell",
1818
# do not check across git submodule boundary
1919
skip_shellcheck=True,
@@ -29,6 +29,7 @@ python_sources(
2929
dependencies=[
3030
":test_content_version_metadata",
3131
":test_content_version_shell",
32+
":test_content_version_shell_resources",
3233
],
3334
sources=[
3435
"test_content_version/**/*.py",

0 commit comments

Comments
 (0)