I have a script file(scriptA.sh) which sources scriptB.sh;
scriptA.sh
#!/usr/bin/env bash
source scriptB.sh
when I create commandunit script such as below and source scriptA.sh, commandunit cannot find scriptB.sh file and giving ".../scriptA.sh: line 6: /dev/scriptB.sh: No such file or directory" error message.
test.yaml
"$extends":
- some.json
when:
source:
-scriptA.sh
cmd:
then:
exitCode:
- EQUAL
- 0