Mitch Garnaat

use source_dir of Context object to find source code.

...@@ -198,7 +198,7 @@ class Context(object): ...@@ -198,7 +198,7 @@ class Context(object):
198 # run any unit tests 198 # run any unit tests
199 unit_test_path = os.path.join(self.test_dir, 'unit') 199 unit_test_path = os.path.join(self.test_dir, 'unit')
200 if os.path.exists(unit_test_path): 200 if os.path.exists(unit_test_path):
201 - os.chdir(self.function.path) 201 + os.chdir(self.source_dir)
202 print('running unit tests') 202 print('running unit tests')
203 pipe = os.popen(self.unit_test_runner, 'r') 203 pipe = os.popen(self.unit_test_runner, 'r')
204 print(pipe.read()) 204 print(pipe.read())
......