'timeout 720s ~/venv/bin/python -m lib.tools.functional_test.py 2',
str(Path.home()) + '/.var/app/it.ya2.Pmachines/data/pmachines/tests/functional/')
- # def __update_itchio(self):
- # system('/home/flavio/.itch/itch')
- # sleep(5)
- # system('xdotool mousemove 860 620')
- # sleep(1)
- # system('xdotool click 1')
- # sleep(300)
- # system('killall itch')
-
- # def test_itchio(self):
- # info('test_itchio')
- # if environ.get('FUNCTIONALPOST') != '1':
- # self.skipTest('skipped functional-post tests')
- # if _branch() != 'master':
- # return
- # self.__update_itchio()
- # self.__test_template(
- # 'timeout 720s /home/flavio/.config/itch/apps/pmachines/pmachines --functional-test & '
- # 'timeout 720s ~/venv/bin/python -m lib.tools.functional_test.py 1; sleep 5; '
- # 'timeout 720s /home/flavio/.config/itch/apps/pmachines/pmachines --functional-test & '
- # 'timeout 720s ~/venv/bin/python -m lib.tools.functional_test.py 2',
- # str(Path.home()) + '/.local/share/pmachines/tests/functional/')
+ def __update_itchio(self):
+ system('/home/flavio/.itch/itch')
+ sleep(5)
+ system('xdotool mousemove 860 620')
+ sleep(1)
+ system('xdotool click 1')
+ sleep(300)
+ system('killall itch')
+
+ def test_itchio(self):
+ info('test_itchio')
+ if environ.get('FUNCTIONALPOST') != '1':
+ self.skipTest('skipped functional-post tests')
+ if _branch() != 'master':
+ return
+ self.__update_itchio()
+ self.__test_template(
+ 'timeout 720s /home/flavio/.config/itch/apps/pmachines/pmachines --functional-test & '
+ 'timeout 720s ~/venv/bin/python -m lib.tools.functional_test.py 1; sleep 5; '
+ 'timeout 720s /home/flavio/.config/itch/apps/pmachines/pmachines --functional-test & '
+ 'timeout 720s ~/venv/bin/python -m lib.tools.functional_test.py 2',
+ str(Path.home()) + '/.local/share/pmachines/tests/functional/')
def test_windows(self):
info('test_windows')
cmds = [
('timeout 720s ./build/manylinux2010_x86_64/pmachines --version', str(Filename.get_user_appdata_directory()) + '/pmachines/obs_version.txt'),
('timeout 720s ./dist/Pmachines-%s-x86_64.AppImage --version' % bld_branch, str(Filename.get_user_appdata_directory()) + '/pmachines/obs_version.txt'),
- ('timeout 720s wine ./build/win_amd64/pmachines.exe --version', '/home/flavio/.wine/drive_c/users/flavio/AppData/Local/pmachines/obs_version.txt')]
- #if environ.get('FUNCTIONALPOST') == '1':
- # if _branch() == 'master':
- # self.__update_itchio()
- # cmds += [('timeout 720s /home/flavio/.config/itch/apps/pmachines/pmachines --version', str(Filename.get_user_appdata_directory()) + '/pmachines/obs_version.txt')]
- # cmds += [('timeout 720s flatpak run it.ya2.Pmachines//%s --version' % bld_branch, '/home/flavio/.var/app/it.ya2.Pmachines/data/pmachines/obs_version.txt')]
+ ('timeout 720s wine ./build/win_amd64/pmachines.exe --version', '/home/flavio/.wine/drive_c/users/flavio/AppData/Local/pmachines/obs_version.txt')
+ ]
+ if environ.get('FUNCTIONALPOST') == '1':
+ if _branch() == 'master':
+ self.__update_itchio()
+ cmds += [('timeout 720s /home/flavio/.config/itch/apps/pmachines/pmachines --version', str(Filename.get_user_appdata_directory()) + '/pmachines/obs_version.txt')]
+ cmds += [('timeout 720s flatpak run it.ya2.Pmachines//%s --version' % bld_branch, '/home/flavio/.var/app/it.ya2.Pmachines/data/pmachines/obs_version.txt')]
system('flatpak update -y it.ya2.Pmachines//%s' % bld_branch)
for cmd in cmds:
if exists(cmd[1]):