-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add TestHarness python integration scripts to dev package #818
Changes from 14 commits
f81921a
0a1ec82
6f16347
d56b97e
b2db52d
d55b043
315874a
c8d36c2
38f8c59
be154da
b6007e0
61b0efe
08b1eb5
8c8ad50
9c066a7
c46400c
7d78b88
e7e66a5
3e9d098
d6e6a93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ ! -L ${CMAKE_INSTALL_FULL_LIBDIR}/python3/dist-packages/TestHarness ]; then | ||
mkdir -p ${CMAKE_INSTALL_FULL_LIBDIR}/python3/dist-packages | ||
ln -s ../../../share/leap_testing/tests/TestHarness ${CMAKE_INSTALL_FULL_LIBDIR}/python3/dist-packages/TestHarness | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per our discussion: So, from what I can tell there are a couple caveats here: It's populated for free after executing But am not sure if finding Python_SITELIB from cmake is a good idea. From our discussion, sounds like the thought is to: Leave it as is for now. Then when dropping support for ubuntu18 and bumping cmake we can tend to it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I concur, finding But we could potentially use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Issue created to investigate this in the future: #839 |
||
fi | ||
|
||
if [ ! -L ${CMAKE_INSTALL_FULL_DATAROOTDIR}/leap_testing/bin ]; then | ||
mkdir -p ${CMAKE_INSTALL_FULL_DATAROOTDIR}/leap_testing | ||
ln -s ../../bin ${CMAKE_INSTALL_FULL_DATAROOTDIR}/leap_testing/bin | ||
ScottBailey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
fi |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,4 @@ | ||||||||||
#!/bin/sh | ||||||||||
|
||||||||||
rm -f ${CMAKE_INSTALL_FULL_LIBDIR}/python3/dist-packages/TestHarness | ||||||||||
rm -f ${CMAKE_INSTALL_FULL_DATAROOTDIR}/leap_testing/bin | ||||||||||
Comment on lines
+4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I should have caught this before.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm nervous about this change. What if it is installed into a common location where There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah I agree, I don't think we should touch anything other then the symlinks we created. I would even consider not There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point about dist packages. You could do a combination 'rmdir -p' for the directors and rm -r for the symlinks, and that would protect us, I think. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you want to make it as simple as possible, I'd suggest removing the That allows the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here is the solution I implemented and tested: c46400c
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import os | ||
|
||
sys_core_symbol = os.environ.get('CORE_SYMBOL_NAME') | ||
|
||
CORE_SYMBOL=sys_core_symbol if sys_core_symbol else '${CORE_SYMBOL_NAME}' |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for putting the very clear explanation around this