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

[Replaces #1885] Launcher: fixed Path problems, splitted in 3 files and added tests #1914

Merged
merged 3 commits into from
Jul 22, 2016

Conversation

l0rd
Copy link
Contributor

@l0rd l0rd commented Jul 22, 2016

This PR replaces #1885

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 mloriedo@redhat.com

Tyler Jewell and others added 3 commits July 22, 2016 15:37
Cleaned up syntax so that the variables will work on Windows.

Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
@TylerJewell
Copy link

Ok - +1. Reviews completed in other branch. Thanks, @l0rd for updating here.

@TylerJewell TylerJewell added this to the 4.6.0 milestone Jul 22, 2016
@TylerJewell TylerJewell added the kind/bug Outline of a bug - must adhere to the bug report template. label Jul 22, 2016
@TylerJewell TylerJewell merged commit e0db444 into eclipse-che:master Jul 22, 2016
@bmicklea bmicklea mentioned this pull request Jul 26, 2016
64 tasks
ShimonBenYair pushed a commit to ShimonBenYair/che that referenced this pull request Aug 4, 2016
…n 3 files and added tests (eclipse-che#1914)

* Fix environment variables for CHE_DATA_FOLDER

Cleaned up syntax so that the variables will work on Windows.

Signed-off-by: Mario Loriedo <mloriedo@redhat.com>

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

Signed-off-by: Mario Loriedo <mloriedo@redhat.com>

* Launcher tests: added instructions to run bats tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants