Skip to content

Commit

Permalink
chore: rename test helpers script file
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
  • Loading branch information
cmatsuoka committed Mar 22, 2024
1 parent 999cb05 commit 9153264
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions charmcraft/application/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@
├── tests
│ ├── spread
│ │ ├── lib
│ │ │ └── funcs.sh - Helpers for spread testing
│ │ └── minimal
│ │ └── task.yaml - Minimal task definition
│ │ │ ├── cloud-config.yaml
│ │ │ └── test-helpers.yaml
│ │ └── general
│ │ └── integration
│ │ └── task.yaml
│ ├── integration
│ │ └── test_charm.py - Integration tests
│ └── unit
Expand Down
4 changes: 2 additions & 2 deletions charmcraft/templates/init-machine/spread.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ suites:

prepare: |
set -e
. "$CRAFT_TEST_LIB_PATH"/funcs.sh
. "$CRAFT_TEST_LIB_PATH"/test-helpers.sh
apt update -y
apt install -y python3-pip
pip3 install tox
Expand All @@ -113,7 +113,7 @@ suites:

restore: |
set -e
. "$CRAFT_TEST_LIB_PATH"/funcs.sh
. "$CRAFT_TEST_LIB_PATH"/test-helpers.sh
rm -f "$PROJECT_PATH"/*.charm
charmcraft clean -p "$PROJECT_PATH"

Expand Down

0 comments on commit 9153264

Please sign in to comment.