-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move environment setup to a shell script
The environment variables are required both the sanlock executable running from the tests, and for the testing modules. For example, sanlock python binding will look for sanlock socket using SANLOCK_RUN_DIR. Signed-off-by: Nir Soffer <nsoffer@redhat.com>
- Loading branch information
Showing
4 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Setup the environment for testing sanlock. | ||
|
||
# Use built libraries from source | ||
export LD_LIBRARY_PATH=$PWD/wdmd:$PWD/src | ||
|
||
# Disable privileged operations, allowing to run sanlock daemon as | ||
# non-privileged user. | ||
export SANLOCK_PRIVILEGED=0 | ||
|
||
# Use temporary sanlock run dir, usable for non-privileged user. This | ||
# is used by sanlock daemon to create a lockfile and socket, and by | ||
# sanlock clients for communicating with the daemon. | ||
export SANLOCK_RUN_DIR=/tmp/sanlock | ||
|
||
# Import sanlock extension module from source. | ||
export PYTHONPATH=$PWD/python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters