Browse Source

Small fixe in runtest

Yann Weber 8 years ago
parent
commit
0404ded91f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      install/loader.py

+ 3
- 3
install/loader.py View File

@@ -1,13 +1,12 @@
1 1
 #-*- coding: utf-8 -*-
2 2
 
3
-import sys, os
3
+import sys, os, os.path
4 4
 #
5 5
 # Bootstraping
6 6
 #
7 7
 LODEL2_LIB_ABS_PATH = None
8 8
 if LODEL2_LIB_ABS_PATH is not None:
9 9
     sys.path.append(os.path.dirname(LODEL2_LIB_ABS_PATH))
10
-    sys.path.append(os.path.dirname(LODEL2_LIB_ABS_PATH))
11 10
 
12 11
 try:
13 12
     import lodel
@@ -42,7 +41,8 @@ if __name__ == '__main__':
42 41
         import unittest
43 42
         import tests
44 43
         loader = unittest.TestLoader()
45
-        suite = loader.discover('tests')
44
+        test_dir = os.path.join(LODEL2_LIB_ABS_PATH, 'tests')
45
+        suite = loader.discover(test_dir)
46 46
         runner = unittest.TextTestRunner()
47 47
         runner.run(suite)
48 48
         exit()

Loading…
Cancel
Save