Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Fix e2e tests on MacOS. #400

Merged
merged 2 commits into from
May 11, 2020
Merged

Conversation

vladlosev
Copy link
Contributor

@vladlosev vladlosev commented May 2, 2020

This change fixes e2e tests on MacOS. Some of the tests use the sed command with the -i option to modify files in place. On Linux, that option has an optional parameter specifying the name of the back-up file to create. On the standard sed installation in MacOS, the parameter for -i is required (it may be empty though, in which case no back-up file is created), so the tests fail with this message:

# (in test file ./15_upgrade.bats, line 67)
#   `sed -i 's%replicaCount: 1%replicaCount: 2%' charts/podinfo/values.yaml' failed

This change modifies sed invocation to work on MacOS. This should help with the development of Helm Operator on Mac.

@hiddeco hiddeco added the build About the build or test scaffolding label May 4, 2020
@hiddeco hiddeco merged commit cafcb31 into fluxcd:master May 11, 2020
@hiddeco
Copy link
Member

hiddeco commented May 11, 2020

Thank you @vladlosev 💯

@vladlosev vladlosev deleted the fix-e2e-tests-on-mac branch May 11, 2020 16:57
@hiddeco hiddeco added this to the 1.1.0 milestone May 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build About the build or test scaffolding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants