Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launcher: fixed Path problems, splitted in 3 files and added tests #1898

Merged
merged 2 commits into from
Jul 22, 2016

Conversation

l0rd
Copy link
Contributor

@l0rd l0rd commented Jul 21, 2016

What does this PR do?

Add a new function to cleanup paths strings provided by users, splitted the big shell script launcher.sh in 3 different scripts, added some unit tests.

What issues does this PR fix or reference?

Problems with paths provided by users

Previous Behavior

Che failed to store workspace when providing a path with a trailing slash: -e CHE_STORAGE_FOLDER=/somefolder/

New Behavior

CHE_STORAGE_FOLDER and CHE_CONF_FOLDER variables are cleaned up (trailing slashes are removed)

Tests written?

Yes

Docs requirements?

No

Please review Che's Contributing Guide for best practices.

Signed-off-by: Mario Loriedo [email protected]

@codenvy-ci
Copy link

Can one of the admins verify this patch?

@TylerJewell
Copy link

lgtm - +1

@benoitf
Copy link
Contributor

benoitf commented Jul 21, 2016

It should say how bats needs to be installed or provide docker image for the tests
Also I don't see any comments on shell script functions

@benoitf
Copy link
Contributor

benoitf commented Jul 22, 2016

ok for me

@TylerJewell TylerJewell merged commit 6d77273 into eclipse-che:CHE-666 Jul 22, 2016
@TylerJewell TylerJewell added this to the 4.6.0 milestone Jul 22, 2016
@TylerJewell TylerJewell added the kind/enhancement A feature request - must adhere to the feature request template. label Jul 22, 2016
@bmicklea bmicklea mentioned this pull request Jul 26, 2016
64 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants