ya2 · news · projects · code · about

functional tests: appimage
authorFlavio Calva <f.calva@gmail.com>
Wed, 13 Apr 2022 17:42:30 +0000 (18:42 +0100)
committerFlavio Calva <f.calva@gmail.com>
Wed, 13 Apr 2022 17:42:30 +0000 (18:42 +0100)
prj.org
tests/test_functional.py

diff --git a/prj.org b/prj.org
index c77b7b455b203da51b422dd007acfdf76af0583f..261c0b9194f6f8c39a8f8a10c5d2bed4a2e89c28 100644 (file)
--- a/prj.org
+++ b/prj.org
@@ -10,7 +10,7 @@
     - [X] play
     - [X] save-restore options
     - [X] code
-    - [ ] appimage
+    - [X] appimage
     - [ ] flatpak
     - [ ] windows
     - [ ] itchio
index 00ff6cee3c025606b09263d766784737529084c6..a53961f0828c66fec97bd18146700e1e72af7cc9 100644 (file)
@@ -69,7 +69,7 @@ class FunctionalTests(TestCase):
         self.__awake()
         system('amixer sset Master 0%')
         ret = system(cmd)
-        self.assertEqual(ret, 0)
+        self.assertEqual(ret, 0, 'error while executing ' + cmd)
         files = glob(str(Path.home()) + '/.local/share/pmachines/tests/functional_ref_%s/*.png' % _branch())
         self.assertGreater(len(files), 1)
         for fname in files:
@@ -86,14 +86,14 @@ class FunctionalTests(TestCase):
             '~/venv/bin/python main.py --functional-test 2',
             str(Path.home()) + '/.local/share/pmachines/tests/functional/')
 
-    def test_appimage(self):
-        info('test_appimage')
-        bld_branch = {'master': 'alpha', 'rc': 'rc', 'stable': 'stable'}[_branch()]
-        bld_branch = '' if bld_branch == 'stable' else ('-' + bld_branch)
-        self.__test_template(
-            './dist/Pmachines%s-x86_64.AppImage --functional-test 1 ;'
-            './dist/Pmachines%s-x86_64.AppImage --functional-test 2' % (bld_branch, bld_branch),
-            str(Path.home()) + '/.local/share/pmachines/tests/functional/')
+    def test_appimage(self):
+        info('test_appimage')
+        bld_branch = {'master': 'alpha', 'rc': 'rc', 'stable': 'stable'}[_branch()]
+        bld_branch = '' if bld_branch == 'stable' else ('-' + bld_branch)
+        self.__test_template(
+            './dist/Pmachines%s-x86_64.AppImage --functional-test 1 ;'
+            './dist/Pmachines%s-x86_64.AppImage --functional-test 2' % (bld_branch, bld_branch),
+            str(Path.home()) + '/.local/share/pmachines/tests/functional/')
 
     # def test_flatpak(self):
     #     info('test_flatpak')