Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ❯ yay
- [sudo] rain → root: sudo pacman -S -y --config /etc/pacman.conf --
- Please touch the FIDO authenticator.
- :: Synchronising package databases...
- lizardbyte is up to date
- core is up to date
- extra is up to date
- multilib is up to date
- :: Searching AUR for updates...
- :: Searching databases for updates...
- -> easyeffects: ignoring package upgrade (7.2.5-2 => 8.2.2-1)
- -> Packages not in AUR: accounts-qml-module arc-gtk-theme-eos endeavouros-branding endeavouros-keyring endeavouros-mirrorlist eos-apps-info eos-bash-shared eos-hooks eos-log-tool eos-packagelist eos-qogir-icons eos-quickstart eos-rankmirrors eos-reboot-recommended eos-settings-gnome eos-translations eos-update libkdcraw5 nvidia-hook nvidia-inst quazip-qt5 scarlett2-git welcome
- -> Flagged Out Of Date AUR Packages: gearlever python-ftputil scarlett2-firmware thunar-megasync-bin ttf-nanum
- -> reflector-simple: local (2025.10-1) is newer than AUR (3.3-1)
- :: 1 dependency will also be installed for this operation.
- extra/python-setuptools-scm -> 10.0.5-1
- (make dependency of protontricks-git)
- :: 1 package to upgrade/install.
- 1 aur/protontricks-git 1.13.1.r8.g7ee7ee0-1 -> 1.14.1.r6.g28cfc0c-1
- ==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
- -> Excluding packages may cause partial upgrades and break systems
- ==> None
- AUR Explicit (1): protontricks-git-1.14.1.r6.g28cfc0c-1
- Sync Make Dependency (1): python-setuptools-scm-10.0.5-1
- :: PKGBUILD up to date, skipping download: protontricks-git
- ==> Making package: protontricks-git 1.14.1.r6.g28cfc0c-1 (Do 14 Mai 2026 17:10:32 CEST)
- ==> Retrieving sources...
- -> Updating protontricks git repo...
- ==> WARNING: Skipping verification of source file PGP signatures.
- ==> Validating source files with sha256sums...
- protontricks ... Skipped
- :: (1/1) Parsing SRCINFO: protontricks-git
- :: Synchronising package databases...
- lizardbyte is up to date
- core is up to date
- extra is up to date
- multilib is up to date
- :: Starting full system upgrade...
- warning: easyeffects: ignoring package upgrade (7.2.5-2 => 8.2.2-1)
- resolving dependencies...
- looking for conflicting packages...
- Packages (2) python-vcs-versioning-1.1.1-1 python-setuptools-scm-10.0.5-1
- Total Installed Size: 0,95 MiB
- :: Proceed with installation? [Y/n]
- (2/2) checking keys in keyring [#####################################################################################] 100%
- (2/2) checking package integrity [#####################################################################################] 100%
- (2/2) loading package files [#####################################################################################] 100%
- (2/2) checking for file conflicts [#####################################################################################] 100%
- (2/2) checking available disk space [#####################################################################################] 100%
- :: Processing package changes...
- (1/2) installing python-vcs-versioning [#####################################################################################] 100%
- (2/2) installing python-setuptools-scm [#####################################################################################] 100%
- Optional dependencies for python-setuptools-scm
- python-rich: use rich as console log handler
- :: Running post-transaction hooks...
- (1/1) Arming ConditionNeedsUpdate...
- ==> Making package: protontricks-git 1.14.1.r6.g28cfc0c-1 (Do 14 Mai 2026 17:10:34 CEST)
- ==> Checking runtime dependencies...
- ==> Checking buildtime dependencies...
- ==> Retrieving sources...
- -> Updating protontricks git repo...
- ==> Validating source files with sha256sums...
- protontricks ... Skipped
- ==> Removing existing $srcdir/ directory...
- ==> Extracting sources...
- -> Creating working copy of protontricks git repo...
- Cloning into 'protontricks'...
- done.
- ==> Starting prepare()...
- ==> Starting pkgver()...
- ==> Sources are ready.
- ==> Making package: protontricks-git 1.14.1.r6.g28cfc0c-1 (Do 14 Mai 2026 17:10:35 CEST)
- ==> Checking runtime dependencies...
- ==> Checking buildtime dependencies...
- ==> WARNING: Using existing $srcdir/ tree
- ==> Starting pkgver()...
- ==> Removing existing $pkgdir/ directory...
- ==> Starting build()...
- * Getting build dependencies for wheel...
- * Building wheel...
- running bdist_wheel
- running build
- running build_py
- creating build/lib/protontricks
- copying src/protontricks/__init__.py -> build/lib/protontricks
- copying src/protontricks/config.py -> build/lib/protontricks
- copying src/protontricks/flatpak.py -> build/lib/protontricks
- copying src/protontricks/gui.py -> build/lib/protontricks
- copying src/protontricks/steam.py -> build/lib/protontricks
- copying src/protontricks/util.py -> build/lib/protontricks
- copying src/protontricks/winetricks.py -> build/lib/protontricks
- copying src/protontricks/_version.py -> build/lib/protontricks
- creating build/lib/protontricks/_vdf
- copying src/protontricks/_vdf/__init__.py -> build/lib/protontricks/_vdf
- copying src/protontricks/_vdf/vdict.py -> build/lib/protontricks/_vdf
- creating build/lib/protontricks/cli
- copying src/protontricks/cli/__init__.py -> build/lib/protontricks/cli
- copying src/protontricks/cli/command.py -> build/lib/protontricks/cli
- copying src/protontricks/cli/desktop_install.py -> build/lib/protontricks/cli
- copying src/protontricks/cli/launch.py -> build/lib/protontricks/cli
- copying src/protontricks/cli/main.py -> build/lib/protontricks/cli
- copying src/protontricks/cli/util.py -> build/lib/protontricks/cli
- creating build/lib/protontricks/data
- copying src/protontricks/data/__init__.py -> build/lib/protontricks/data
- creating build/lib/protontricks/data/data
- copying src/protontricks/data/data/__init__.py -> build/lib/protontricks/data/data
- creating build/lib/protontricks/data/scripts
- copying src/protontricks/data/scripts/__init__.py -> build/lib/protontricks/data/scripts
- creating build/lib/protontricks/data/share/applications
- copying src/protontricks/data/share/applications/__init__.py -> build/lib/protontricks/data/share/applications
- running egg_info
- creating src/protontricks.egg-info
- writing src/protontricks.egg-info/PKG-INFO
- writing dependency_links to src/protontricks.egg-info/dependency_links.txt
- writing entry points to src/protontricks.egg-info/entry_points.txt
- writing requirements to src/protontricks.egg-info/requires.txt
- writing top-level names to src/protontricks.egg-info/top_level.txt
- writing manifest file 'src/protontricks.egg-info/SOURCES.txt'
- /usr/lib/python3.14/site-packages/vcs_versioning/overrides.py:609: UserWarning: No GlobalOverrides context is active. Auto-creating one with SETUPTOOLS_SCM prefix for backwards compatibility. Consider using 'with GlobalOverrides.from_env("YOUR_TOOL"):' explicitly.
- return get_active_overrides().subprocess_timeout
- reading manifest template 'MANIFEST.in'
- warning: no previously-included files found matching '*.yml'
- warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
- warning: no previously-included files matching '__pycache__' found anywhere in distribution
- adding license file 'LICENSE'
- writing manifest file 'src/protontricks.egg-info/SOURCES.txt'
- copying src/protontricks/_vdf/LICENSE -> build/lib/protontricks/_vdf
- copying src/protontricks/_vdf/README.rst -> build/lib/protontricks/_vdf
- copying src/protontricks/data/__init__.py -> build/lib/protontricks/data
- copying src/protontricks/data/data/icon_placeholder.png -> build/lib/protontricks/data/data
- copying src/protontricks/data/scripts/bwrap_launcher.sh -> build/lib/protontricks/data/scripts
- copying src/protontricks/data/scripts/wine_launch.sh -> build/lib/protontricks/data/scripts
- copying src/protontricks/data/scripts/wineserver_keepalive.bat -> build/lib/protontricks/data/scripts
- copying src/protontricks/data/scripts/wineserver_keepalive.sh -> build/lib/protontricks/data/scripts
- copying src/protontricks/data/share/applications/protontricks-launch.desktop -> build/lib/protontricks/data/share/applications
- copying src/protontricks/data/share/applications/protontricks.desktop -> build/lib/protontricks/data/share/applications
- installing to build/bdist.linux-x86_64/wheel
- running install
- running install_lib
- creating build/bdist.linux-x86_64/wheel
- creating build/bdist.linux-x86_64/wheel/protontricks
- copying build/lib/protontricks/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks
- copying build/lib/protontricks/config.py -> build/bdist.linux-x86_64/wheel/./protontricks
- copying build/lib/protontricks/flatpak.py -> build/bdist.linux-x86_64/wheel/./protontricks
- copying build/lib/protontricks/gui.py -> build/bdist.linux-x86_64/wheel/./protontricks
- copying build/lib/protontricks/steam.py -> build/bdist.linux-x86_64/wheel/./protontricks
- copying build/lib/protontricks/util.py -> build/bdist.linux-x86_64/wheel/./protontricks
- copying build/lib/protontricks/winetricks.py -> build/bdist.linux-x86_64/wheel/./protontricks
- copying build/lib/protontricks/_version.py -> build/bdist.linux-x86_64/wheel/./protontricks
- creating build/bdist.linux-x86_64/wheel/protontricks/_vdf
- copying build/lib/protontricks/_vdf/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/_vdf
- copying build/lib/protontricks/_vdf/vdict.py -> build/bdist.linux-x86_64/wheel/./protontricks/_vdf
- copying build/lib/protontricks/_vdf/LICENSE -> build/bdist.linux-x86_64/wheel/./protontricks/_vdf
- copying build/lib/protontricks/_vdf/README.rst -> build/bdist.linux-x86_64/wheel/./protontricks/_vdf
- creating build/bdist.linux-x86_64/wheel/protontricks/cli
- copying build/lib/protontricks/cli/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
- copying build/lib/protontricks/cli/command.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
- copying build/lib/protontricks/cli/desktop_install.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
- copying build/lib/protontricks/cli/launch.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
- copying build/lib/protontricks/cli/main.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
- copying build/lib/protontricks/cli/util.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
- creating build/bdist.linux-x86_64/wheel/protontricks/data
- creating build/bdist.linux-x86_64/wheel/protontricks/data/data
- copying build/lib/protontricks/data/data/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/data/data
- copying build/lib/protontricks/data/data/icon_placeholder.png -> build/bdist.linux-x86_64/wheel/./protontricks/data/data
- creating build/bdist.linux-x86_64/wheel/protontricks/data/scripts
- copying build/lib/protontricks/data/scripts/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
- copying build/lib/protontricks/data/scripts/bwrap_launcher.sh -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
- copying build/lib/protontricks/data/scripts/wine_launch.sh -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
- copying build/lib/protontricks/data/scripts/wineserver_keepalive.bat -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
- copying build/lib/protontricks/data/scripts/wineserver_keepalive.sh -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
- creating build/bdist.linux-x86_64/wheel/protontricks/data/share
- creating build/bdist.linux-x86_64/wheel/protontricks/data/share/applications
- copying build/lib/protontricks/data/share/applications/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/data/share/applications
- copying build/lib/protontricks/data/share/applications/protontricks-launch.desktop -> build/bdist.linux-x86_64/wheel/./protontricks/data/share/applications
- copying build/lib/protontricks/data/share/applications/protontricks.desktop -> build/bdist.linux-x86_64/wheel/./protontricks/data/share/applications
- copying build/lib/protontricks/data/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/data
- running install_data
- creating build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.data/data
- creating build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications
- copying src/protontricks/data/share/applications/protontricks.desktop -> build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications
- copying src/protontricks/data/share/applications/protontricks-launch.desktop -> build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications
- running install_egg_info
- Copying src/protontricks.egg-info to build/bdist.linux-x86_64/wheel/./protontricks-1.14.2.dev6+g28cfc0c00-py3.14.egg-info
- running install_scripts
- creating build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.dist-info/WHEEL
- creating '/home/rain/.cache/yay/protontricks-git/src/protontricks/dist/.tmp-j278maa2/protontricks-1.14.2.dev6+g28cfc0c00-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
- adding 'protontricks/__init__.py'
- adding 'protontricks/_version.py'
- adding 'protontricks/config.py'
- adding 'protontricks/flatpak.py'
- adding 'protontricks/gui.py'
- adding 'protontricks/steam.py'
- adding 'protontricks/util.py'
- adding 'protontricks/winetricks.py'
- adding 'protontricks/_vdf/LICENSE'
- adding 'protontricks/_vdf/README.rst'
- adding 'protontricks/_vdf/__init__.py'
- adding 'protontricks/_vdf/vdict.py'
- adding 'protontricks/cli/__init__.py'
- adding 'protontricks/cli/command.py'
- adding 'protontricks/cli/desktop_install.py'
- adding 'protontricks/cli/launch.py'
- adding 'protontricks/cli/main.py'
- adding 'protontricks/cli/util.py'
- adding 'protontricks/data/__init__.py'
- adding 'protontricks/data/data/__init__.py'
- adding 'protontricks/data/data/icon_placeholder.png'
- adding 'protontricks/data/scripts/__init__.py'
- adding 'protontricks/data/scripts/bwrap_launcher.sh'
- adding 'protontricks/data/scripts/wine_launch.sh'
- adding 'protontricks/data/scripts/wineserver_keepalive.bat'
- adding 'protontricks/data/scripts/wineserver_keepalive.sh'
- adding 'protontricks/data/share/applications/__init__.py'
- adding 'protontricks/data/share/applications/protontricks-launch.desktop'
- adding 'protontricks/data/share/applications/protontricks.desktop'
- adding 'protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications/protontricks-launch.desktop'
- adding 'protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications/protontricks.desktop'
- adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/licenses/LICENSE'
- adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/METADATA'
- adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/WHEEL'
- adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/entry_points.txt'
- adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/top_level.txt'
- adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/RECORD'
- removing build/bdist.linux-x86_64/wheel
- Successfully built protontricks-1.14.2.dev6+g28cfc0c00-py3-none-any.whl
- ==> Starting check()...
- ========================================================================================================= test session starts ==========================================================================================================
- platform linux -- Python 3.14.5, pytest-9.0.3, pluggy-1.6.0
- rootdir: /home/rain/.cache/yay/protontricks-git/src/protontricks
- configfile: pyproject.toml
- collected 172 items
- tests/cli/test_desktop_install.py . [ 0%]
- tests/cli/test_launch.py ............ [ 7%]
- tests/cli/test_main.py ....FFFF...F...................F...F.................. [ 38%]
- tests/cli/test_util.py ...... [ 42%]
- tests/test_config.py .. [ 43%]
- tests/test_flatpak.py ......... [ 48%]
- tests/test_gui.py ..F................ [ 59%]
- tests/test_steam.py ..................................................... [ 90%]
- tests/test_util.py FF............ [ 98%]
- tests/test_winetricks.py .. [100%]
- =============================================================================================================== FAILURES ===============================================================================================================
- _____________________________________________________________________________________________ TestCLIRun.test_run_winetricks_select_steam ______________________________________________________________________________________________
- self = <cli.test_main.TestCLIRun object at 0x7f8d435f28d0>, cli = <function _run_cli.<locals>.func at 0x7f8d432c8720>, steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d43236f00>
- default_proton = <protontricks.steam.SteamApp object at 0x7f8d430abe20>, command_mock = <conftest.CommandMock object at 0x7f8d4322e350>
- home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser')
- def test_run_winetricks_select_steam(
- self, cli, steam_app_factory, default_proton, command_mock,
- home_dir):
- """
- Perform a Protontricks command while selecting a specific
- Steam installation directory
- """
- steam_app_factory(name="Fake game", appid=10)
- os.rename(
- str(home_dir / ".steam" / "steam"),
- str(home_dir / ".steam_new")
- )
- os.rename(
- str(home_dir / ".steam" / "root" / "ubuntu12_32"),
- str(home_dir / ".steam_new" / "ubuntu12_32")
- )
- cli(
- ["10", "winecfg"],
- env={"STEAM_DIR": str(home_dir / ".steam_new")}
- )
- command = command_mock.commands[-1]
- > assert command.env["WINE"] == str(
- home_dir / ".cache" / "protontricks" / "proton"
- / "Proton 4.20" / "bin" / "wine"
- )
- E AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
- E
- E - /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin/wine
- E + /home/rain/.cache/protontricks/proton/Proton 4.20/bin/wine
- tests/cli/test_main.py:118: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:util.py:86 Stream log handler added
- INFO protontricks:steam.py:431 Found a valid Steam installation at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam_new.
- INFO protontricks:steam.py:539 Using default Steam Runtime at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam_new/ubuntu12_32/steam-runtime
- INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
- INFO protontricks:steam.py:1150 Found 0 Steam library folders
- DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
- DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam_new/steamapps/appmanifest_10.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam_new/steamapps/appmanifest_10.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 10: [PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam_new/steamapps/compatdata/10/pfx')]
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam_new/steamapps/appmanifest_123450.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam_new/steamapps/appmanifest_123450.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 123450: []
- DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
- INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
- INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
- DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 10
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.steam_new/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:steam.py:789 Found ToolMapping entry
- DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
- INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_420
- DEBUG protontricks:steam.py:706 proton_420 has compat tool aliases ['proton_420', 'proton-stable', 'proton_420']
- INFO protontricks:steam.py:919 Found active compatibility tool: Proton 4.20
- INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
- DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
- DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
- DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
- INFO protontricks:util.py:550 Using 'bwrap = False' as default value
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
- INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
- INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
- INFO protontricks:util.py:690 Attempting to run command ['/tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.local/bin/winetricks', 'winecfg']
- ___________________________________________________________________________________________ TestCLIRun.test_run_winetricks_steam_runtime_v1 ____________________________________________________________________________________________
- self = <cli.test_main.TestCLIRun object at 0x7f8d435bfbd0>, cli = <function _run_cli.<locals>.func at 0x7f8d43237530>, steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d432375e0>
- steam_runtime_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/root/ubuntu12_32'), default_proton = <protontricks.steam.SteamApp object at 0x7f8d42ea9c60>
- command_mock = <conftest.CommandMock object at 0x7f8d4322e150>, home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser')
- def test_run_winetricks_steam_runtime_v1(
- self, cli, steam_app_factory, steam_runtime_dir, default_proton,
- command_mock, home_dir):
- """
- Perform a Protontricks command using the older Steam Runtime
- bundled with Steam
- """
- steam_app_factory(name="Fake game 1", appid=10)
- cli(["10", "winecfg"], env={"STEAM_RUNTIME": "1"})
- wine_bin_dir = (
- home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
- / "bin"
- )
- # winecfg was actually run
- command = command_mock.commands[-1]
- assert str(command.args[0]).endswith(".local/bin/winetricks")
- assert command.args[1] == "winecfg"
- > assert command.env["PATH"].startswith(str(wine_bin_dir))
- E AssertionError: assert False
- E + where False = <built-in method startswith of str object at 0x7f8d432465b0>('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin')
- E + where <built-in method startswith of str object at 0x7f8d432465b0> = '/home/rain/.cache/protontricks/proton/Proton 4.20/bin:/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/ho...apps/common/Proton 4.20/dist/bin:/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.local/bin'.startswith
- E + and '/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin' = str(PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin'))
- tests/cli/test_main.py:147: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:util.py:86 Stream log handler added
- INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam
- INFO protontricks:steam.py:539 Using default Steam Runtime at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/root/ubuntu12_32/steam-runtime
- INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
- INFO protontricks:steam.py:1150 Found 0 Steam library folders
- DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
- DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 10: [PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam/steamapps/compatdata/10/pfx')]
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam/steamapps/appmanifest_123450.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam/steamapps/appmanifest_123450.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 123450: []
- DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
- INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
- INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
- DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 10
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:steam.py:789 Found ToolMapping entry
- DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
- INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_420
- DEBUG protontricks:steam.py:706 proton_420 has compat tool aliases ['proton_420', 'proton-stable', 'proton_420']
- INFO protontricks:steam.py:919 Found active compatibility tool: Proton 4.20
- INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
- DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
- DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
- DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
- INFO protontricks:util.py:550 Using 'bwrap = False' as default value
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
- INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
- INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
- INFO protontricks:util.py:690 Attempting to run command ['/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.local/bin/winetricks', 'winecfg']
- ___________________________________________________________________________________________ TestCLIRun.test_run_winetricks_steam_runtime_v2 ____________________________________________________________________________________________
- self = <cli.test_main.TestCLIRun object at 0x7f8d435bf9b0>, cli = <function _run_cli.<locals>.func at 0x7f8d43235f30>, home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser')
- steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d43234d50>, steam_runtime_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/root/ubuntu12_32')
- steam_runtime_soldier = <protontricks.steam.SteamApp object at 0x7f8d430ab220>, command_mock = <conftest.CommandMock object at 0x7f8d434bcb90>, proton_factory = <function proton_factory.<locals>.func at 0x7f8d43235640>
- caplog = <_pytest.logging.LogCaptureFixture object at 0x7f8d432182d0>
- def test_run_winetricks_steam_runtime_v2(
- self, cli, home_dir, steam_app_factory, steam_runtime_dir,
- steam_runtime_soldier, command_mock, proton_factory, caplog):
- """
- Perform a Protontricks command using a newer Steam Runtime that is
- installed as its own application
- """
- proton_app = proton_factory(
- name="Proton 5.13", appid=10, compat_tool_name="proton_513",
- is_default_proton=True, required_tool_app=steam_runtime_soldier
- )
- steam_app_factory(name="Fake game 1", appid=20)
- cli(["20", "winecfg"], env={"STEAM_RUNTIME": "1"})
- wine_bin_dir = (
- home_dir / ".cache" / "protontricks" / "proton" / "Proton 5.13"
- / "bin"
- )
- # Launcher process was launched to handle launching processes
- # inside the sandbox
- > assert command_mock.commands[0].args[0] \
- == str(wine_bin_dir / "bwrap-launcher")
- E AssertionError: assert '/home/rain/....wrap-launcher' == '/tmp/pytest-...wrap-launcher'
- E
- E - /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.cache/protontricks/proton/Proton 5.13/bin/bwrap-launcher
- E + /home/rain/.cache/protontricks/proton/Proton 5.13/bin/bwrap-launcher
- tests/cli/test_main.py:193: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:util.py:86 Stream log handler added
- INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam
- INFO protontricks:steam.py:539 Using default Steam Runtime at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/root/ubuntu12_32/steam-runtime
- INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
- INFO protontricks:steam.py:1150 Found 0 Steam library folders
- DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
- DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/steamapps/appmanifest_20.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/steamapps/appmanifest_20.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 20: [PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/steamapps/compatdata/20/pfx')]
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 10: []
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/steamapps/appmanifest_1391110.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/steamapps/appmanifest_1391110.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 1391110: []
- DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
- INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
- INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
- DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 20
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:steam.py:789 Found ToolMapping entry
- DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
- INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_513
- DEBUG protontricks:steam.py:706 proton_513 has compat tool aliases ['proton_513', 'proton_513']
- INFO protontricks:steam.py:919 Found active compatibility tool: Proton 5.13
- INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
- DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
- DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
- DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
- INFO protontricks:util.py:550 Using 'bwrap = True' as default value
- INFO protontricks:util.py:566 Using separately installed Steam Runtime: Steam Linux Runtime - Soldier
- INFO protontricks:util.py:573 Running Steam Runtime using bwrap containerization.
- If any problems arise, please try running the command again using the `--no-bwrap` flag and make an issue report if the problem only occurs when bwrap is in use.
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 5.13/bin
- INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
- INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
- INFO protontricks:util.py:641 Starting bwrap launcher process: /home/rain/.cache/protontricks/proton/Proton 5.13/bin/bwrap-launcher
- INFO protontricks:util.py:676 bwrap launcher started
- INFO protontricks:util.py:690 Attempting to run command ['/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.local/bin/winetricks', 'winecfg']
- INFO protontricks:util.py:710 Terminating launcher process 5
- INFO protontricks:util.py:716 Launcher process terminated
- _______________________________________________________________________________________ TestCLIRun.test_run_winetricks_steam_runtime_v2_no_bwrap _______________________________________________________________________________________
- self = <cli.test_main.TestCLIRun object at 0x7f8d434a1e50>, cli = <function _run_cli.<locals>.func at 0x7f8d432359b0>, home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser')
- steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d432c8510>, steam_runtime_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/root/ubuntu12_32')
- steam_runtime_soldier = <protontricks.steam.SteamApp object at 0x7f8d432137c0>, command_mock = <conftest.CommandMock object at 0x7f8d434be120>, proton_factory = <function proton_factory.<locals>.func at 0x7f8d432c9b10>
- caplog = <_pytest.logging.LogCaptureFixture object at 0x7f8d4321ab70>
- def test_run_winetricks_steam_runtime_v2_no_bwrap(
- self, cli, home_dir, steam_app_factory, steam_runtime_dir,
- steam_runtime_soldier, command_mock, proton_factory, caplog):
- """
- Perform a Protontricks command using a newer Steam Runtime
- *without* bwrap that is installed as its own application
- """
- proton_app = proton_factory(
- name="Proton 5.13", appid=10, compat_tool_name="proton_513",
- is_default_proton=True, required_tool_app=steam_runtime_soldier
- )
- steam_app_factory(name="Fake game 1", appid=20)
- cli(["--no-bwrap", "20", "winecfg"], env={"STEAM_RUNTIME": "1"})
- wine_bin_dir = (
- home_dir / ".cache" / "protontricks" / "proton" / "Proton 5.13"
- / "bin"
- )
- command = command_mock.commands[-1]
- # winecfg was run
- assert str(command.args[0]).endswith(".local/bin/winetricks")
- assert command.args[1] == "winecfg"
- > assert command.env["PATH"].startswith(str(wine_bin_dir))
- E AssertionError: assert False
- E + where False = <built-in method startswith of str object at 0x7f8d43246ab0>('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.cache/protontricks/proton/Proton 5.13/bin')
- E + where <built-in method startswith of str object at 0x7f8d43246ab0> = '/home/rain/.cache/protontricks/proton/Proton 5.13/bin:/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/ho...apps/common/Proton 5.13/dist/bin:/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.local/bin'.startswith
- E + and '/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.cache/protontricks/proton/Proton 5.13/bin' = str(PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.cache/protontricks/proton/Proton 5.13/bin'))
- tests/cli/test_main.py:261: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:util.py:86 Stream log handler added
- INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam
- INFO protontricks:steam.py:539 Using default Steam Runtime at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/root/ubuntu12_32/steam-runtime
- INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
- INFO protontricks:steam.py:1150 Found 0 Steam library folders
- DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
- DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/steamapps/appmanifest_20.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/steamapps/appmanifest_20.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 20: [PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/steamapps/compatdata/20/pfx')]
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 10: []
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/steamapps/appmanifest_1391110.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/steamapps/appmanifest_1391110.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 1391110: []
- DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
- INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
- INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
- DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 20
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:steam.py:789 Found ToolMapping entry
- DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
- INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_513
- DEBUG protontricks:steam.py:706 proton_513 has compat tool aliases ['proton_513', 'proton_513']
- INFO protontricks:steam.py:919 Found active compatibility tool: Proton 5.13
- INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
- DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
- DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
- DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
- INFO protontricks:util.py:566 Using separately installed Steam Runtime: Steam Linux Runtime - Soldier
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 5.13/bin
- INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
- INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
- INFO protontricks:util.py:690 Attempting to run command ['/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.local/bin/winetricks', 'winecfg']
- _____________________________________________________________________________________ TestCLIRun.test_run_background_wineserver_toggle[args3-True] _____________________________________________________________________________________
- self = <cli.test_main.TestCLIRun object at 0x7f8d4347f850>, cli = <function _run_cli.<locals>.func at 0x7f8d432c90c0>, steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d432c8880>
- default_new_proton = <protontricks.steam.SteamApp object at 0x7f8d430aabc0>, command_mock = <conftest.CommandMock object at 0x7f8d4321c650>, args = ['--background-wineserver', '--no-bwrap', '-c', "'echo nothing'", '20']
- wineserver_launched = True, home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser')
- @pytest.mark.parametrize(
- "args,wineserver_launched",
- [
- # background wineserver disabled for bwrap by default
- (["-c", "'echo nothing'", "20"], False),
- # background wineserver also disabled by default for everything
- # else
- (["--no-bwrap", "-c", "'echo nothing'", "20"], False),
- # Manually disable background wineserver
- (
- ["--no-background-wineserver", "-c", "'echo nothing'", "20"],
- False
- ),
- # Manually enable background wineserver
- (
- [
- "--background-wineserver", "--no-bwrap",
- "-c", "'echo nothing'", "20"
- ],
- True
- )
- ]
- )
- def test_run_background_wineserver_toggle(
- self, cli, steam_app_factory, default_new_proton, command_mock,
- args, wineserver_launched, home_dir):
- """
- Try running a Protontricks command with different arguments
- and ensure background wineserver is (not) launched
- depending on the scenario
- """
- steam_app_factory(name="Fake game 1", appid=20)
- cli(args)
- wineserver_found = any(
- True for command in command_mock.commands
- if isinstance(command.args, str)
- and command.args == str(
- home_dir / ".cache/protontricks/proton/Proton 7.0/bin"
- / "wineserver-keepalive"
- )
- )
- > assert wineserver_found == wineserver_launched
- E assert False == True
- tests/cli/test_main.py:350: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:util.py:86 Stream log handler added
- INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam
- INFO protontricks:steam.py:539 Using default Steam Runtime at /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/root/ubuntu12_32/steam-runtime
- INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
- INFO protontricks:steam.py:1150 Found 0 Steam library folders
- DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
- DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/steamapps/appmanifest_20.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/steamapps/appmanifest_20.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 20: [PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/steamapps/compatdata/20/pfx')]
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/steamapps/appmanifest_543210.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/steamapps/appmanifest_543210.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 543210: []
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/steamapps/appmanifest_1391110.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/steamapps/appmanifest_1391110.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 1391110: []
- DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
- INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
- INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
- DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 20
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:steam.py:789 Found ToolMapping entry
- DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
- INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_70
- DEBUG protontricks:steam.py:706 proton_70 has compat tool aliases ['proton_70', 'proton_70']
- INFO protontricks:steam.py:919 Found active compatibility tool: Proton 7.0
- INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
- DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
- DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
- DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
- INFO protontricks:util.py:566 Using separately installed Steam Runtime: Steam Linux Runtime - Soldier
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 7.0/bin
- INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
- INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
- INFO protontricks:util.py:679 Starting wineserver keepalive process: /home/rain/.cache/protontricks/proton/Proton 7.0/bin/wineserver-keepalive
- INFO protontricks:util.py:690 Attempting to run command 'echo nothing'
- INFO protontricks:util.py:703 Terminating wineserver keepalive process 5
- _______________________________________________________________________________________________________ TestCLIGUI.test_run_gui ________________________________________________________________________________________________________
- self = <cli.test_main.TestCLIGUI object at 0x7f8d4344d1d0>, cli = <function _run_cli.<locals>.func at 0x7f8d434e68d0>, default_proton = <protontricks.steam.SteamApp object at 0x7f8d42ec9120>
- steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d42e701a0>, gui_provider = <conftest.MockSubprocess object at 0x7f8d42e709f0>, command_mock = <conftest.CommandMock object at 0x7f8d42ee68f0>
- home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser')
- def test_run_gui(
- self, cli, default_proton, steam_app_factory, gui_provider,
- command_mock, home_dir):
- """
- Start the GUI and fake selecting a game
- """
- steam_app = steam_app_factory(name="Fake game 1", appid=10)
- proton_install_path = Path(default_proton.install_path)
- # Fake the user selecting the game
- gui_provider.mock_stdout = "Fake game 1: 10"
- cli(["--gui"])
- command = command_mock.commands[-1]
- # 'winetricks --gui' was run for the game selected by user
- assert str(command.args[0]) == \
- str(home_dir / ".local" / "bin" / "winetricks")
- assert command.args[1] == "--gui"
- # Correct environment vars were set
- > assert command.env["WINE"] == str(
- home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
- / "bin" / "wine"
- )
- E AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
- E
- E - /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin/wine
- E + /home/rain/.cache/protontricks/proton/Proton 4.20/bin/wine
- tests/cli/test_main.py:765: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:util.py:86 Stream log handler added
- INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam
- INFO protontricks:steam.py:539 Using default Steam Runtime at /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/root/ubuntu12_32/steam-runtime
- INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
- INFO protontricks:steam.py:1150 Found 0 Steam library folders
- DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
- DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 10: [PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam/steamapps/compatdata/10/pfx')]
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam/steamapps/appmanifest_123450.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam/steamapps/appmanifest_123450.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 123450: []
- DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
- INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
- INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
- INFO protontricks:gui.py:48 Using 'yad' as GUI provider
- DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 10
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:steam.py:789 Found ToolMapping entry
- DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
- INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_420
- DEBUG protontricks:steam.py:706 proton_420 has compat tool aliases ['proton_420', 'proton-stable', 'proton_420']
- INFO protontricks:steam.py:919 Found active compatibility tool: Proton 4.20
- INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
- DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
- DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
- DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
- INFO protontricks:util.py:550 Using 'bwrap = False' as default value
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
- INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
- INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
- INFO protontricks:util.py:690 Attempting to run command ['/tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.local/bin/winetricks', '--gui']
- ___________________________________________________________________________________________________ TestCLICommand.test_run_command ____________________________________________________________________________________________________
- self = <cli.test_main.TestCLICommand object at 0x7f8d4344d450>, cli = <function _run_cli.<locals>.func at 0x7f8d42e71bc0>, default_proton = <protontricks.steam.SteamApp object at 0x7f8d42ec8fa0>
- steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d42e72610>, gui_provider = <conftest.MockSubprocess object at 0x7f8d42e72fc0>, command_mock = <conftest.CommandMock object at 0x7f8d435cbf50>
- home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser')
- def test_run_command(
- self, cli, default_proton, steam_app_factory, gui_provider,
- command_mock, home_dir):
- """
- Run a shell command for a given game
- """
- steam_app = steam_app_factory(name="Fake game", appid=10)
- proton_install_path = default_proton.install_path
- cli(["-c", "bash", "10"])
- command = command_mock.commands[-1]
- # The command is just 'bash'
- assert command.args == "bash"
- assert command.cwd is None
- assert command.shell is True
- # Correct environment vars were set
- > assert command.env["WINE"] == str(
- home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
- / "bin" / "wine"
- )
- E AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
- E
- E - /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin/wine
- E + /home/rain/.cache/protontricks/proton/Proton 4.20/bin/wine
- tests/cli/test_main.py:841: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:util.py:86 Stream log handler added
- INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam
- INFO protontricks:steam.py:539 Using default Steam Runtime at /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/root/ubuntu12_32/steam-runtime
- INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
- INFO protontricks:steam.py:1150 Found 0 Steam library folders
- DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
- DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam/steamapps/appmanifest_10.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 10: [PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam/steamapps/compatdata/10/pfx')]
- DEBUG protontricks:steam.py:215 Creating SteamApp from manifest file in /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam/steamapps/appmanifest_123450.acf
- DEBUG protontricks:steam.py:267 Could not parse 'StateFlags' for /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam/steamapps/appmanifest_123450.acf, the field might be missing
- DEBUG protontricks:steam.py:955 Found compatdata directories for app 123450: []
- DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
- INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
- INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
- DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 10
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- DEBUG protontricks:steam.py:789 Found ToolMapping entry
- DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
- INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_420
- DEBUG protontricks:steam.py:706 proton_420 has compat tool aliases ['proton_420', 'proton-stable', 'proton_420']
- INFO protontricks:steam.py:919 Found active compatibility tool: Proton 4.20
- INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
- DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
- DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
- DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
- INFO protontricks:util.py:550 Using 'bwrap = False' as default value
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
- INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
- INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
- INFO protontricks:util.py:690 Attempting to run command bash
- __________________________________________________________________________________________ TestSelectApp.test_select_game_icons_ensure_resize __________________________________________________________________________________________
- self = <test_gui.TestSelectApp object at 0x7f8d435ef360>, gui_provider = <conftest.MockSubprocess object at 0x7f8d432c9a70>, steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d42e726c0>
- steam_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_select_game_icons_ensure_0/home/fakeuser/.steam/steam'), home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_select_game_icons_ensure_0/home/fakeuser')
- def test_select_game_icons_ensure_resize(
- self, gui_provider, steam_app_factory, steam_dir, home_dir):
- """
- Select a game using the GUI. Ensure custom icons with sizes other than
- 32x32 are resized.
- """
- steam_apps = [
- steam_app_factory(name="Fake game 1", appid=10)
- ]
- Image.new("RGB", (64, 64)).save(
- steam_dir / "appcache" / "librarycache" / "10_icon.jpg"
- )
- gui_provider.mock_stdout = "Fake game 1: 10"
- select_steam_app_with_gui(steam_apps=steam_apps, steam_path=steam_dir)
- # Resized icon should have been created with the correct size and used
- resized_icon_path = \
- home_dir / ".cache" / "protontricks" / "app_icons" / "10.jpg"
- > assert resized_icon_path.is_file()
- E AssertionError: assert False
- E + where False = is_file()
- E + where is_file = PosixPath('/tmp/pytest-of-rain/pytest-4/test_select_game_icons_ensure_0/home/fakeuser/.cache/protontricks/app_icons/10.jpg').is_file
- tests/test_gui.py:158: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- INFO protontricks:gui.py:48 Using 'yad' as GUI provider
- INFO protontricks:gui.py:97 App icon /tmp/pytest-of-rain/pytest-4/test_select_game_icons_ensure_0/home/fakeuser/.steam/steam/appcache/librarycache/10_icon.jpg has unusual size, resizing
- ____________________________________________________________________________________________ TestCreateWineBinDir.test_wine_bin_dir_updated ____________________________________________________________________________________________
- self = <test_util.TestCreateWineBinDir object at 0x7f8d43244410>, home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_wine_bin_dir_updated0/home/fakeuser'), default_proton = <protontricks.steam.SteamApp object at 0x7f8d431e93c0>
- def test_wine_bin_dir_updated(self, home_dir, default_proton):
- """
- Test that the directory containing the helper scripts is kept
- up-to-date with the Proton installation's binaries
- """
- create_wine_bin_dir(default_proton)
- # Check that the Wine binaries exist
- > files = get_files_in_dir(
- home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
- / "bin"
- )
- tests/test_util.py:24:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/test_util.py:12: in get_files_in_dir
- return {binary.name for binary in d.iterdir()}
- ^^^^^^^^^^^
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = PosixPath('/tmp/pytest-of-rain/pytest-4/test_wine_bin_dir_updated0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin')
- def iterdir(self):
- """Yield path objects of the directory contents.
- The children are yielded in arbitrary order, and the
- special entries '.' and '..' are not included.
- """
- root_dir = str(self)
- > with os.scandir(root_dir) as scandir_it:
- ^^^^^^^^^^^^^^^^^^^^
- E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-rain/pytest-4/test_wine_bin_dir_updated0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin'
- /usr/lib/python3.14/pathlib/__init__.py:836: FileNotFoundError
- ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_wine_bin_dir_updated0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
- _________________________________________________________________________________________ TestRunCommand.test_user_environment_variables_used __________________________________________________________________________________________
- self = <test_util.TestRunCommand object at 0x7f8d432447d0>, default_proton = <protontricks.steam.SteamApp object at 0x7f8d431ede40>
- steam_runtime_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_user_environment_variable0/home/fakeuser/.steam/root/ubuntu12_32'), steam_app_factory = <function steam_app_factory.<locals>.func at 0x7f8d4312f740>
- home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_user_environment_variable0/home/fakeuser'), command_mock = <conftest.CommandMock object at 0x7f8d43387150>
- monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8d43386ac0>
- def test_user_environment_variables_used(
- self, default_proton, steam_runtime_dir, steam_app_factory,
- home_dir, command_mock, monkeypatch):
- """
- Test that user-provided environment variables are used even when
- Steam Runtime is enabled
- """
- steam_app = steam_app_factory(name="Fake game", appid=10)
- run_command(
- winetricks_path=Path("/usr/bin/winetricks"),
- proton_app=default_proton,
- steam_app=steam_app,
- command=["echo", "nothing"],
- use_steam_runtime=True,
- legacy_steam_runtime_path=steam_runtime_dir / "steam-runtime"
- )
- # Proxy scripts are used if no environment variables are set by the
- # user
- wine_bin_dir = (
- home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
- / "bin"
- )
- command = command_mock.commands[-1]
- assert command.args == ["echo", "nothing"]
- > assert command.env["WINE"] == str(wine_bin_dir / "wine")
- E AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
- E
- E - /tmp/pytest-of-rain/pytest-4/test_user_environment_variable0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin/wine
- E + /home/rain/.cache/protontricks/proton/Proton 4.20/bin/wine
- tests/test_util.py:83: AssertionError
- ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:steam.py:650 Loading appinfo.vdf in /tmp/pytest-of-rain/pytest-4/test_user_environment_variable0/home/fakeuser/.steam/steam/appcache/appinfo.vdf
- DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
- ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
- DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
- DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
- DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
- INFO protontricks:util.py:550 Using 'bwrap = False' as default value
- INFO protontricks:util.py:554 Using 'background-wineserver = False' as default value
- INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
- INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
- INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
- INFO protontricks:util.py:690 Attempting to run command ['echo', 'nothing']
- ======================================================================================================= short test summary info ========================================================================================================
- FAILED tests/cli/test_main.py::TestCLIRun::test_run_winetricks_select_steam - AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
- FAILED tests/cli/test_main.py::TestCLIRun::test_run_winetricks_steam_runtime_v1 - AssertionError: assert False
- FAILED tests/cli/test_main.py::TestCLIRun::test_run_winetricks_steam_runtime_v2 - AssertionError: assert '/home/rain/....wrap-launcher' == '/tmp/pytest-...wrap-launcher'
- FAILED tests/cli/test_main.py::TestCLIRun::test_run_winetricks_steam_runtime_v2_no_bwrap - AssertionError: assert False
- FAILED tests/cli/test_main.py::TestCLIRun::test_run_background_wineserver_toggle[args3-True] - assert False == True
- FAILED tests/cli/test_main.py::TestCLIGUI::test_run_gui - AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
- FAILED tests/cli/test_main.py::TestCLICommand::test_run_command - AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
- FAILED tests/test_gui.py::TestSelectApp::test_select_game_icons_ensure_resize - AssertionError: assert False
- FAILED tests/test_util.py::TestCreateWineBinDir::test_wine_bin_dir_updated - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-rain/pytest-4/test_wine_bin_dir_updated0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin'
- FAILED tests/test_util.py::TestRunCommand::test_user_environment_variables_used - AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
- ==================================================================================================== 10 failed, 162 passed in 1.06s ====================================================================================================
- ==> ERROR: A failure occurred in check().
- Aborting...
- -> error making: protontricks-git-exit status 4
- checking dependencies...
- Packages (2) python-vcs-versioning-1.1.1-1 python-setuptools-scm-10.0.5-1
- Total Removed Size: 0,95 MiB
- :: Do you want to remove these packages? [Y/n]
- :: Processing package changes...
- (1/2) removing python-setuptools-scm [#####################################################################################] 100%
- (2/2) removing python-vcs-versioning [#####################################################################################] 100%
- :: Running post-transaction hooks...
- (1/1) Arming ConditionNeedsUpdate...
- -> Failed to install the following packages. Manual intervention is required:
- protontricks-git - exit status 4
Advertisement
Add Comment
Please, Sign In to add comment