Skip to content

Commit

Permalink
Fix help message and incorrect test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrews committed Nov 16, 2023
1 parent 1558bfb commit e90bd12
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ansible_builder/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def add_container_options(parser):

p.add_argument('-f', '--file',
dest='filename',
help='The definition of the execution environment (default: %(default)s)')
help='The definition of the execution environment (default: execution-environment.(yml|yaml))')

p.add_argument('-c', '--context',
default=constants.default_build_context,
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_builder/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
FINAL_IMAGE_BIN_PATH = "/opt/builder/bin"

DEFAULT_EE_BASENAME = "execution-environment"
YAML_FILENAME_EXTENSIONS = ('yml', 'yaml)')
YAML_FILENAME_EXTENSIONS = ('yml', 'yaml')
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
dependencies:
python: requirements.txt
python: my-requirements.txt
4 changes: 4 additions & 0 deletions test/unit/test_introspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def test_parse_args_default_action():
def test_yaml_extension(data_dir):
"""
Test that introspection recognizes a collection meta directory EE with a .yaml file extension.
NOTE: This test depends on the meta EE in the collection to reference a file other than "requirements.txt"
because of the way CollectionDefinition.__init__() will fall through to a default if the meta EE is not
found.
"""
col_path = os.path.join(data_dir, 'alternate_collections')
files = process(col_path)
Expand Down

0 comments on commit e90bd12

Please sign in to comment.