@@ -22,22 +22,27 @@ Feature: Orb pack
2222 And the exit status should be 0
2323
2424 @mocked_home_directory
25- Scenario : Orb pack with multiple includes fails
25+ Scenario : Orb pack with multiple includes
2626 Given a file named "src/@orb.yml" with:
2727 """
2828 commands:
2929 test:
3030 steps:
3131 - run:
32- command: <<include(script.sh)>> <<include(script .sh)>>
32+ command: <<include(script.sh)>> <<include(script2 .sh)>>
3333 """
34- Given a file named "src/script.sh" with "echo Hello, world!"
34+ Given a file named "src/script.sh" with "echo Hello,"
35+ Given a file named "src/script2.sh" with "world!"
3536 When I run `circleci orb pack src`
3637 Then the output should contain:
3738 """
38- Error: An unexpected error occurred: multiple include statements: '<<include(script.sh)>> <<include(script.sh)>>'
39+ commands:
40+ test:
41+ steps:
42+ - run:
43+ command: echo Hello, world!
3944 """
40- And the exit status should be 255
45+ And the exit status should be 0
4146
4247 @mocked_home_directory
4348 Scenario : Orb pack with include statement in bigger string
@@ -47,15 +52,19 @@ Feature: Orb pack
4752 test:
4853 steps:
4954 - run:
50- command: include <<include(script.sh)>>
55+ command: echo " <<include(script.sh)>>"
5156 """
52- Given a file named "src/script.sh" with "echo Hello, world!"
57+ Given a file named "src/script.sh" with "Hello, world!"
5358 When I run `circleci orb pack src`
5459 Then the output should contain:
5560 """
56- Error: An unexpected error occurred: entire string must be include statement: 'include <<include(script.sh)>>'
61+ commands:
62+ test:
63+ steps:
64+ - run:
65+ command: echo "Hello, world!"
5766 """
58- And the exit status should be 255
67+ And the exit status should be 0
5968
6069 @mocked_home_directory
6170 Scenario : Missing @orb.yml for orb packing
0 commit comments