File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 8585ifndef STATIC_ANALYSIS_CHECKER
8686 @printf "\e[1m\e[31m%s\e[0m\n" "Shellcheck not installed: Static analysis not performed!" && exit 1
8787else
88- @find . -name "*.sh" -not -path "./local/*" | xargs shellcheck -xC && printf "\e[1m\e[32m%s\e[0m\n" "ShellCheck: OK!"
88+ @find . -name "*.sh" -not -path "./local/*" -exec shellcheck -xC {} \; && printf "\e[1m\e[32m%s\e[0m\n" "ShellCheck: OK!"
8989endif
9090
9191lint :
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ function runner::run_test() {
295295
296296 local test_execution_result=$(
297297 # shellcheck disable=SC2064
298- trap " exit_code=\ $ ?; runner::cleanup_on_exit \ "$test_file \" \ $ exit_code" EXIT
298+ trap ' exit_code=$?; runner::cleanup_on_exit "$test_file" " $exit_code"' EXIT
299299 state::initialize_assertions_count
300300 if ! runner::run_set_up " $test_file " ; then
301301 status=$?
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ # shellcheck external-sources=false
3+ # shellcheck disable=SC1091
24
35function test_mock_ps_when_executing_a_script() {
46 mock ps cat ./tests/functional/fixtures/doubles_ps_output
You can’t perform that action at this time.
0 commit comments