SLIDER-630. slider-agent unit tests fail on debian and suse
diff --git a/slider-agent/pom.xml b/slider-agent/pom.xml
index 95af5ba..4e5b6bd 100644
--- a/slider-agent/pom.xml
+++ b/slider-agent/pom.xml
@@ -63,7 +63,7 @@
<executions>
<execution>
<configuration>
- <executable>python</executable>
+ <executable>${project.basedir}/../slider-agent/src/test/python/python-wrap</executable>
<workingDirectory>src/test/python</workingDirectory>
<arguments>
<argument>unitTests.py</argument>
diff --git a/slider-agent/src/test/python/python-wrap.sh b/slider-agent/src/test/python/python-wrap
similarity index 83%
rename from slider-agent/src/test/python/python-wrap.sh
rename to slider-agent/src/test/python/python-wrap
index 8f30d67..ea57721 100755
--- a/slider-agent/src/test/python/python-wrap.sh
+++ b/slider-agent/src/test/python/python-wrap
@@ -17,7 +17,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-export PYTHONPATH=/usr/lib/python2.7/site-packages/common_functions:$PYTHONPATH
+export PYTHONPATH=/usr/lib/python2.6/site-packages:$PYTHONPATH
# reset settings
unset PYTHON
@@ -25,12 +25,10 @@
# checking for preferable python versions
if [ -a /usr/bin/python2.7 ] && [ -z "$PYTHON" ]; then
PYTHON=/usr/bin/python2.7
- export PYTHONPATH=/usr/lib/python2.7/site-packages/common_functions:$PYTHONPATH
fi
if [ -a /usr/bin/python2.6 ] && [ -z "$PYTHON" ]; then
PYTHON=/usr/bin/python2.6
- export PYTHONPATH=/usr/lib/python2.6/site-packages/common_functions:$PYTHONPATH
fi
# if no preferable python versions found, try to use system one