ya2 · news · projects · code · about

more fixes for building
authorFlavio Calva <f.calva@gmail.com>
Wed, 3 Aug 2022 18:48:06 +0000 (19:48 +0100)
committerFlavio Calva <f.calva@gmail.com>
Wed, 3 Aug 2022 18:48:06 +0000 (19:48 +0100)
pmachines/app.py
tests/test_functional.py

index 994b0fab35546bcad438ee5b0a84db7434ff6b0f..a0ed4ed3466fb69dd71c2619e89de2daf8703625 100755 (executable)
@@ -231,12 +231,12 @@ class PmachinesApp:
                         d_i.get_display_mode_height(idx)
                 resolutions = [
                     _res(idx) for idx in range(d_i.get_total_display_modes())]
-            res = sorted(resolutions)[-1]
+                res = sorted(resolutions)[-1]
         fullscreen = self._options['settings']['fullscreen']
         props = WindowProperties()
         if args.functional_test or args.functional_ref:
             fullscreen = False
-        else:
+        elif not self.version:
             props.set_size(res)
         props.set_fullscreen(fullscreen)
         props.set_icon_filename('assets/images/icon/pmachines.ico')
index 81c8f927167768cbae6faf1ca1c8059a6f7e7e00..73a0c9e85bc9483b5139858316cf7134d81c7d67 100644 (file)
@@ -150,9 +150,9 @@ class FunctionalTests(TestCase):
 
     def __update_itchio(self):
         system('/home/flavio/.itch/itch')
-        sleep(5)
+        sleep(120)
         system('xdotool mousemove 860 620')
-        sleep(1)
+        sleep(3)
         system('xdotool click 1')
         sleep(300)
         system('killall itch')