Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] run_robot_test.sh - OC login and return value (red-hat-data-ser…
…vices#943) * [Fix] run_robot_test.sh - OC login This fixes OC login on my local Fedora 38 machine. Without this change, the strings contain also `"`. Also missing `-` in front of the switch isn't allowed. Tested with Python based `yq` tool: ``` $ yq --version # https://github.com/kislyuk/yq yq 3.2.3 $ yq --help ... -e set the exit status code based on the output; ... -r output raw strings, not JSON texts; ... ``` and also with GoLang based `yq` tool: ``` $ ./yq_linux_amd64 --version # https://github.com/mikefarah/yq yq (https://github.com/mikefarah/yq/) version v4.35.2 $ ./yq_linux_amd64 --help ... -e, --exit-status set exit status if there are no matches or null or false is returned ... -r, --unwrapScalar unwrap scalar, print the value with no quotes, colors or comments. Defaults to true for yaml (default true) ... ``` * [Fix] run_robot_test.sh - fix return value Return value in case of service account login could be wrong * [Fix] run_robot_test.sh - let's check return code of yq before oc login
- Loading branch information