diff --git a/tests/e2e/test_media_transfer.py b/tests/e2e/test_media_transfer.py index 6c6c015..bbe0377 100644 --- a/tests/e2e/test_media_transfer.py +++ b/tests/e2e/test_media_transfer.py @@ -9,6 +9,7 @@ class Media(harness.FrameTestCase): def test_upload_and_list_without_launching_a_viewer(self): # The transfer endpoint doesn't decode. Rendering belongs to the real # headset smoke checks documented in docs/vr-video.md. + self.assertEqual(ssh('stat -c "%U:%G %a" ~/.local/share').strip(), 'steamos:steamos 755') result = ok('POST', '/api/upload', raw=b'fake-media', headers={ 'X-Mode': 'media', 'X-Filename': 'test_SBS.png'}) identity = result['id'] diff --git a/tests/fakeframe/rootfs/usr/local/lib/fakeframe/init.py b/tests/fakeframe/rootfs/usr/local/lib/fakeframe/init.py index ade78cb..d2104b2 100755 --- a/tests/fakeframe/rootfs/usr/local/lib/fakeframe/init.py +++ b/tests/fakeframe/rootfs/usr/local/lib/fakeframe/init.py @@ -237,6 +237,7 @@ def runtimes(state): for directory in (HOME + '/.local', HOME + '/.local/share'): os.makedirs(directory, mode=0o755, exist_ok=True) chown(directory) + os.chmod(directory, 0o755) apps = fs.STEAM_ROOT + '/steamapps' for alias, installed in state['runtimes'].items(): acf = f'{apps}/appmanifest_{fs.RUNTIME_APPIDS[alias]}.acf'