info('test idx: %s' % idx)
self._offset = offset
- sleep(12)
+ info(str(sys.argv))
+ sleep(int(sys.argv[2]) if len(sys.argv) >= 3 else 12)
self._proxy = ServerProxy('http://localhost:7000')
self._curr_time = 0
self._tasks = []
abspath = str(Path(__file__).parent.parent) + '/build/win_amd64/pmachines.exe'
self.__test_template(
'timeout 7200s wine %s --functional-test' % abspath,
- ['timeout 7200s ~/venv/bin/python -m tests.functional_test.py 1',
- 'timeout 7200s ~/venv/bin/python -m tests.functional_test.py 2',
- 'timeout 7200s ~/venv/bin/python -m tests.functional_test.py 3'],
+ ['timeout 7200s ~/venv/bin/python -m tests.functional_test.py 1 120',
+ 'timeout 7200s ~/venv/bin/python -m tests.functional_test.py 2 120',
+ 'timeout 7200s ~/venv/bin/python -m tests.functional_test.py 3 120'],
str(Path.home()) + '/.wine/drive_c/users/flavio/AppData/Local/pmachines/tests/functional/')
def test_versions(self):
self.__path += f'tests/functional{"_ref" if self.__creating_references else ""}/'
def __set_path_wine(self):
- home = Path.home()
+ home = str(Path.home())
if self.__path.startswith('/c/users/') and exists(home + '/.wine/'):
self.__path = home + '/.wine/drive_' + self.__path[1:]
@staticmethod
def __is_windows_not_wine():
home = str(Path.home())
- return platform == 'win32' and not exists(home + '/.wine/')
+ return platform.startswith('win') and not exists(home + '/.wine/')
@staticmethod
def __linux2windows_path(path):