Help with status
command for a docker container running working, but not command in preconditions
#1159
Unanswered
alistaircol
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an issue which I can't figure out.
I want to add a precondition to assert that a docker container is running for a task.
I have a
docker-compose.yml
file with a servicephp
which hasbash
installed.The precondition should pass in my tests. The command is output correctly, the special variable
{{.USER_WORKING_DIR}}
is interpolated correctly. When I run the command separately, it exits with 0, i.e. success.Changing the
preconditions
to assert the user working directory is usable in the precondition:blah.txt
has the working directory correctly in the command.When I run the command from the file
The quotes around the
-f
option are removed, but absolute path in my case doesn't have any whitespace/special characters so that isn't an issue.When I use
status
instead ofpreconditions
it will run the task.My question is why does it not pass with it as an item in the
preconditions
?Beta Was this translation helpful? Give feedback.
All reactions