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

fix: dev: Change static path to shared_dir attribute #11

Merged
merged 2 commits into from
Jun 20, 2016

Conversation

baraserg
Copy link
Collaborator

@baraserg baraserg commented Jun 15, 2016

Some static paths were left behind and plugin to move openswitch container logs to test name folder

@@ -103,7 +103,8 @@ def create_interfaces():
raise Exception('Failed to map ports with port labels')

# Writting mapping to file
with open('/tmp/port_mapping.json', 'w') as json_file:
shared_dir_tmp = str(__file__).split('openswitch_setup.py')[0]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If you believe there's a better way to get this path, please let me know

Copy link
Contributor

Choose a reason for hiding this comment

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

Please use os.path functionality.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, changed

@ocelotl ocelotl self-assigned this Jun 16, 2016
.format(logs_path,
node_obj.shared_dir_mount),
shell='bash')
path_name = '/tmp/{}_{}'.format(item.name, str(id(item)))
Copy link
Contributor

Choose a reason for hiding this comment

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

What if there are 2 test cases with the same name in 2 different test suites?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added test suite name as requested to folder name

@ocelotl ocelotl merged commit c5f7a75 into HPENetworking:master Jun 20, 2016
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