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:
'~/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')