Fixed the import statements. This makes possible to run the test suite.
---
 backend/test/runtests-oracle.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/backend/test/runtests-oracle.py b/backend/test/runtests-oracle.py
index cb5f97a..c13f70f 100755
--- a/backend/test/runtests-oracle.py
+++ b/backend/test/runtests-oracle.py
@@ -19,16 +19,17 @@
 Non-pure tests requiring connectivity to an Oracle server configured below.
 """
 
+import os
 import sys
 import unittest
 
-sys.path.insert(0, '../')
-sys.path.insert(0, './suites')
-sys.path.insert(0, '../../client/rhel/rhnlib')
-
 from spacewalk.server import rhnSQL
 
 # Import all test modules here:
+sys.path.insert(
+    0,
+    os.path.abspath(os.path.dirname(os.path.abspath(__file__) + 
"/../non-unit/server/rhnSQL/"))
+)
 import dbtests
 
 USER = "spacewalk"
-- 
1.8.1.4

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to