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

Submodules #39

Merged
merged 9 commits into from
Jun 23, 2015
Merged

Submodules #39

merged 9 commits into from
Jun 23, 2015

Conversation

rwngwn
Copy link
Contributor

@rwngwn rwngwn commented Jun 19, 2015

reopening #31 against master

@vrutkovs
Copy link
Member

+1 on the code, tests need some adjustment though - we should add existing common-steps/common-steps before we do update

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling 34cad1b on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

@landscape-bot
Copy link

Code Health
Repository health decreased by 0.69% when pulling b2bb0f3 on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling 5ac8547 on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling 63375d2 on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

1 similar comment
@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling 63375d2 on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling 7d1b46b on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling 8e5863d on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

had to remove sanity check(probably is better to move it to some subcommand), because there should not been some features/steps defined in time it is run
@rwngwn
Copy link
Contributor Author

rwngwn commented Jun 22, 2015

@vrutkovs fixed tests and added common steps back.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling 243aa37 on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling 48b4a87 on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

else:
logger.info("Adding tests/features/common-features as a submodule")
check_call('git submodule add https://github.com/Containers-Testing-Framework/common-features.git tests/features/common-features', shell=True)

common_steps_dir = os.path.join(steps_dir, "common_steps")
if os.path.exists(common_steps_dir):
logger.info("Directory tests/steps/common_steps already exists")
else:
logger.info("Adding tests/steps/common_steps as a submodule")
check_call('git submodule add https://github.com/Containers-Testing-Framework/common-steps.git tests/steps/common_steps', shell=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't forcibly add common-steps here

@rwngwn
Copy link
Contributor Author

rwngwn commented Jun 22, 2015

hmm I cant do that easily because python doesn't like - character in imports it seems. so if I add common-steps this way. it dies.
@vrutkovs can you change repo name to common_steps instead of common-steps ? :)

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling e754e52 on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

@vrutkovs
Copy link
Member

_write_environment_py from behave.py should be updated - e.g. convert dashes into underscores.

Alternatively we can add a submodule with a new name (stripping non-alphanumeric chars)

@rwngwn
Copy link
Contributor Author

rwngwn commented Jun 22, 2015

@vrutkovs Ok.. will update it in _write_environment_py. you ar right its better solution

@landscape-bot
Copy link

Code Health
Repository health increased by 0.33% when pulling c06ea30 on l-d-j:submodules into 49d42a4 on Containers-Testing-Framework:master.

vrutkovs added a commit that referenced this pull request Jun 23, 2015
@vrutkovs vrutkovs merged commit 3ec2db2 into Containers-Testing-Framework:master Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants