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

Removes manipulation of the test path location from behave-runner #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwalleck
Copy link

No description provided.

behave_opts.insert(0, product_root_test_path)

print_mug(behave_opts[0])
print_mug(test_env_manager)
behave_opts.insert(0, "behave")

subprocess.call(behave_opts)

Choose a reason for hiding this comment

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

I would recommend:

    current_directory = os.getcwd()
    product_root_test_path = os.path.join(test_env_manager.test_repo_path, product)
    os.chdir(product_root_test_path)
    subprocess.call(behave_opts)
    os.chdir(current_directory)

But if not, we can just cd to the location where the test is at and run the behave-runner from there.
Then the only other thing is to remove import os if it isn't needed.

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.

2 participants