Skip to content

← All questions

Our CI step passes even when lint fails — checking for exit code 1 was wrong?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Someone wrote our pipeline step defensively:

bash
sdods lint -p demo-shop
if [ "$?" = "1" ]; then echo "lint failed"; exit 1; fi

A branch went in last week with two scenarios missing their suite tag and the step was green. Running it by hand I can see the findings printed, so lint is definitely finding them. What does it actually exit with?

1 answer

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related