|
@@ -31,11 +31,11 @@ stats.gmtime = gmtime
|
|
from stats import SessionSubject, CCSessionListener, get_timestamp, get_datetime
|
|
from stats import SessionSubject, CCSessionListener, get_timestamp, get_datetime
|
|
from fake_time import _TEST_TIME_SECS, _TEST_TIME_STRF
|
|
from fake_time import _TEST_TIME_SECS, _TEST_TIME_STRF
|
|
|
|
|
|
-
|
|
+if "B10_FROM_SOURCE" in os.environ:
|
|
-if sys.path[0] == '':
|
|
+ TEST_SPECFILE_LOCATION = os.environ["B10_FROM_SOURCE"] +\
|
|
- TEST_SPECFILE_LOCATION = "./testdata/stats_test.spec"
|
|
+ "/src/bin/stats/tests/testdata/stats_test.spec"
|
|
else:
|
|
else:
|
|
- TEST_SPECFILE_LOCATION = sys.path[0] + "/testdata/stats_test.spec"
|
|
+ TEST_SPECFILE_LOCATION = "./testdata/stats_test.spec"
|
|
|
|
|
|
class TestStats(unittest.TestCase):
|
|
class TestStats(unittest.TestCase):
|
|
|
|
|