According to #17178 by MarcoFalke, cd command (using for changing directory) has some conflicts with Travis builtin command with similar name in some environments (like macOS).
In this PR :
- I tried to solve this issue by replacing
cdbytype cdinci/test/06_script_a.shandci/test/06_script_b.sh. - I added function called
safe_cdas commented in here to avoid duplication in code.