@@ -106,7 +106,7 @@ function run_source_tests {
106106 target_ws=~ /target_ws
107107 downstream_ws=~ /downstream_ws
108108
109- if [ " $CCACHE_DIR " ]; then
109+ if [ -n " $CCACHE_DIR " ]; then
110110 ici_run " setup_ccache" ici_asroot apt-get install -qq -y ccache
111111 export PATH=" /usr/lib/ccache:$PATH "
112112 fi
@@ -122,16 +122,16 @@ function run_source_tests {
122122 extend=" $upstream_ws /install"
123123 fi
124124
125- if [ " ${ CLANG_TIDY:- false} " != false ] ; then
125+ if ! ici_is_false_or_unset " $ CLANG_TIDY" ; then
126126 TARGET_CMAKE_ARGS=" $TARGET_CMAKE_ARGS -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
127127 fi
128128 ici_with_ws " $target_ws " ici_build_workspace " target" " $extend " " $target_ws "
129129
130- if [ " $NOT_TEST_BUILD " != " true " ] ; then
130+ if ici_is_false_or_unset " $NOT_TEST_BUILD " ; then
131131 ici_with_ws " $target_ws " ici_test_workspace " target" " $extend " " $target_ws "
132132 fi
133133
134- if [ " $CATKIN_LINT " == " true " ] || [ " $CATKIN_LINT " == " pedantic" ]; then
134+ if ici_is_true " $CATKIN_LINT " || [ " $CATKIN_LINT " == " pedantic" ]; then
135135 ici_run " install_catkin_lint" install_catkin_lint
136136 local -a catkin_lint_args
137137 ici_parse_env_array catkin_lint_args CATKIN_LINT_ARGS
@@ -141,7 +141,7 @@ function run_source_tests {
141141 ici_with_ws " $target_ws " ici_run " catkin_lint" ici_exec_in_workspace " $extend " " $target_ws " catkin_lint --explain " ${catkin_lint_args[@]} " src
142142
143143 fi
144- if [ " ${ CLANG_TIDY:- false} " != false ] ; then
144+ if ! ici_is_false_or_unset " $ CLANG_TIDY" ; then
145145 run_clang_tidy_check " $target_ws "
146146 fi
147147
@@ -150,7 +150,7 @@ function run_source_tests {
150150 ici_with_ws " $downstream_ws " ici_build_workspace " downstream" " $extend " " $downstream_ws "
151151 # extend="$downstream_ws/install"
152152
153- if [ " $NOT_TEST_DOWNSTREAM " != " true " ] ; then
153+ if ici_is_true_or_unset " $NOT_TEST_DOWNSTREAM " ; then
154154 ici_with_ws " $downstream_ws " ici_test_workspace " downstream" " $extend " " $downstream_ws "
155155 fi
156156 fi
0 commit comments