The script which starts the python PostgreSQL tests was broken because it
didn't find some required resources, plus it looked for files/directories which
are no longer available.
---
 backend/test/runtests-postgresql.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/backend/test/runtests-postgresql.py 
b/backend/test/runtests-postgresql.py
index 94426f6..427c2f7 100755
--- a/backend/test/runtests-postgresql.py
+++ b/backend/test/runtests-postgresql.py
@@ -19,16 +19,17 @@
 Non-pure tests requiring connectivity to a PostgreSQL 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
 
 PG_HOST = "localhost"
-- 
1.8.1.4

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

Reply via email to