longoon12000

Untitled

May 14th, 2026
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.54 KB | None | 0 0
  1. ❯ yay
  2.  
  3. [sudo] rain → root: sudo pacman -S -y --config /etc/pacman.conf --
  4. Please touch the FIDO authenticator.
  5. :: Synchronising package databases...
  6. lizardbyte is up to date
  7. core is up to date
  8. extra is up to date
  9. multilib is up to date
  10. :: Searching AUR for updates...
  11. :: Searching databases for updates...
  12. -> easyeffects: ignoring package upgrade (7.2.5-2 => 8.2.2-1)
  13. -> 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
  14. -> Flagged Out Of Date AUR Packages: gearlever python-ftputil scarlett2-firmware thunar-megasync-bin ttf-nanum
  15. -> reflector-simple: local (2025.10-1) is newer than AUR (3.3-1)
  16. :: 1 dependency will also be installed for this operation.
  17. extra/python-setuptools-scm -> 10.0.5-1
  18. (make dependency of protontricks-git)
  19.  
  20. :: 1 package to upgrade/install.
  21. 1 aur/protontricks-git 1.13.1.r8.g7ee7ee0-1 -> 1.14.1.r6.g28cfc0c-1
  22. ==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
  23. -> Excluding packages may cause partial upgrades and break systems
  24. ==> None
  25. AUR Explicit (1): protontricks-git-1.14.1.r6.g28cfc0c-1
  26. Sync Make Dependency (1): python-setuptools-scm-10.0.5-1
  27. :: PKGBUILD up to date, skipping download: protontricks-git
  28. ==> Making package: protontricks-git 1.14.1.r6.g28cfc0c-1 (Do 14 Mai 2026 17:10:32 CEST)
  29. ==> Retrieving sources...
  30. -> Updating protontricks git repo...
  31. ==> WARNING: Skipping verification of source file PGP signatures.
  32. ==> Validating source files with sha256sums...
  33. protontricks ... Skipped
  34. :: (1/1) Parsing SRCINFO: protontricks-git
  35. :: Synchronising package databases...
  36. lizardbyte is up to date
  37. core is up to date
  38. extra is up to date
  39. multilib is up to date
  40. :: Starting full system upgrade...
  41. warning: easyeffects: ignoring package upgrade (7.2.5-2 => 8.2.2-1)
  42. resolving dependencies...
  43. looking for conflicting packages...
  44.  
  45. Packages (2) python-vcs-versioning-1.1.1-1 python-setuptools-scm-10.0.5-1
  46.  
  47. Total Installed Size: 0,95 MiB
  48.  
  49. :: Proceed with installation? [Y/n]
  50. (2/2) checking keys in keyring [#####################################################################################] 100%
  51. (2/2) checking package integrity [#####################################################################################] 100%
  52. (2/2) loading package files [#####################################################################################] 100%
  53. (2/2) checking for file conflicts [#####################################################################################] 100%
  54. (2/2) checking available disk space [#####################################################################################] 100%
  55. :: Processing package changes...
  56. (1/2) installing python-vcs-versioning [#####################################################################################] 100%
  57. (2/2) installing python-setuptools-scm [#####################################################################################] 100%
  58. Optional dependencies for python-setuptools-scm
  59. python-rich: use rich as console log handler
  60. :: Running post-transaction hooks...
  61. (1/1) Arming ConditionNeedsUpdate...
  62. ==> Making package: protontricks-git 1.14.1.r6.g28cfc0c-1 (Do 14 Mai 2026 17:10:34 CEST)
  63. ==> Checking runtime dependencies...
  64. ==> Checking buildtime dependencies...
  65. ==> Retrieving sources...
  66. -> Updating protontricks git repo...
  67. ==> Validating source files with sha256sums...
  68. protontricks ... Skipped
  69. ==> Removing existing $srcdir/ directory...
  70. ==> Extracting sources...
  71. -> Creating working copy of protontricks git repo...
  72. Cloning into 'protontricks'...
  73. done.
  74. ==> Starting prepare()...
  75. ==> Starting pkgver()...
  76. ==> Sources are ready.
  77. ==> Making package: protontricks-git 1.14.1.r6.g28cfc0c-1 (Do 14 Mai 2026 17:10:35 CEST)
  78. ==> Checking runtime dependencies...
  79. ==> Checking buildtime dependencies...
  80. ==> WARNING: Using existing $srcdir/ tree
  81. ==> Starting pkgver()...
  82. ==> Removing existing $pkgdir/ directory...
  83. ==> Starting build()...
  84. * Getting build dependencies for wheel...
  85. * Building wheel...
  86. running bdist_wheel
  87. running build
  88. running build_py
  89. creating build/lib/protontricks
  90. copying src/protontricks/__init__.py -> build/lib/protontricks
  91. copying src/protontricks/config.py -> build/lib/protontricks
  92. copying src/protontricks/flatpak.py -> build/lib/protontricks
  93. copying src/protontricks/gui.py -> build/lib/protontricks
  94. copying src/protontricks/steam.py -> build/lib/protontricks
  95. copying src/protontricks/util.py -> build/lib/protontricks
  96. copying src/protontricks/winetricks.py -> build/lib/protontricks
  97. copying src/protontricks/_version.py -> build/lib/protontricks
  98. creating build/lib/protontricks/_vdf
  99. copying src/protontricks/_vdf/__init__.py -> build/lib/protontricks/_vdf
  100. copying src/protontricks/_vdf/vdict.py -> build/lib/protontricks/_vdf
  101. creating build/lib/protontricks/cli
  102. copying src/protontricks/cli/__init__.py -> build/lib/protontricks/cli
  103. copying src/protontricks/cli/command.py -> build/lib/protontricks/cli
  104. copying src/protontricks/cli/desktop_install.py -> build/lib/protontricks/cli
  105. copying src/protontricks/cli/launch.py -> build/lib/protontricks/cli
  106. copying src/protontricks/cli/main.py -> build/lib/protontricks/cli
  107. copying src/protontricks/cli/util.py -> build/lib/protontricks/cli
  108. creating build/lib/protontricks/data
  109. copying src/protontricks/data/__init__.py -> build/lib/protontricks/data
  110. creating build/lib/protontricks/data/data
  111. copying src/protontricks/data/data/__init__.py -> build/lib/protontricks/data/data
  112. creating build/lib/protontricks/data/scripts
  113. copying src/protontricks/data/scripts/__init__.py -> build/lib/protontricks/data/scripts
  114. creating build/lib/protontricks/data/share/applications
  115. copying src/protontricks/data/share/applications/__init__.py -> build/lib/protontricks/data/share/applications
  116. running egg_info
  117. creating src/protontricks.egg-info
  118. writing src/protontricks.egg-info/PKG-INFO
  119. writing dependency_links to src/protontricks.egg-info/dependency_links.txt
  120. writing entry points to src/protontricks.egg-info/entry_points.txt
  121. writing requirements to src/protontricks.egg-info/requires.txt
  122. writing top-level names to src/protontricks.egg-info/top_level.txt
  123. writing manifest file 'src/protontricks.egg-info/SOURCES.txt'
  124. /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.
  125. return get_active_overrides().subprocess_timeout
  126. reading manifest template 'MANIFEST.in'
  127. warning: no previously-included files found matching '*.yml'
  128. warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
  129. warning: no previously-included files matching '__pycache__' found anywhere in distribution
  130. adding license file 'LICENSE'
  131. writing manifest file 'src/protontricks.egg-info/SOURCES.txt'
  132. copying src/protontricks/_vdf/LICENSE -> build/lib/protontricks/_vdf
  133. copying src/protontricks/_vdf/README.rst -> build/lib/protontricks/_vdf
  134. copying src/protontricks/data/__init__.py -> build/lib/protontricks/data
  135. copying src/protontricks/data/data/icon_placeholder.png -> build/lib/protontricks/data/data
  136. copying src/protontricks/data/scripts/bwrap_launcher.sh -> build/lib/protontricks/data/scripts
  137. copying src/protontricks/data/scripts/wine_launch.sh -> build/lib/protontricks/data/scripts
  138. copying src/protontricks/data/scripts/wineserver_keepalive.bat -> build/lib/protontricks/data/scripts
  139. copying src/protontricks/data/scripts/wineserver_keepalive.sh -> build/lib/protontricks/data/scripts
  140. copying src/protontricks/data/share/applications/protontricks-launch.desktop -> build/lib/protontricks/data/share/applications
  141. copying src/protontricks/data/share/applications/protontricks.desktop -> build/lib/protontricks/data/share/applications
  142. installing to build/bdist.linux-x86_64/wheel
  143. running install
  144. running install_lib
  145. creating build/bdist.linux-x86_64/wheel
  146. creating build/bdist.linux-x86_64/wheel/protontricks
  147. copying build/lib/protontricks/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks
  148. copying build/lib/protontricks/config.py -> build/bdist.linux-x86_64/wheel/./protontricks
  149. copying build/lib/protontricks/flatpak.py -> build/bdist.linux-x86_64/wheel/./protontricks
  150. copying build/lib/protontricks/gui.py -> build/bdist.linux-x86_64/wheel/./protontricks
  151. copying build/lib/protontricks/steam.py -> build/bdist.linux-x86_64/wheel/./protontricks
  152. copying build/lib/protontricks/util.py -> build/bdist.linux-x86_64/wheel/./protontricks
  153. copying build/lib/protontricks/winetricks.py -> build/bdist.linux-x86_64/wheel/./protontricks
  154. copying build/lib/protontricks/_version.py -> build/bdist.linux-x86_64/wheel/./protontricks
  155. creating build/bdist.linux-x86_64/wheel/protontricks/_vdf
  156. copying build/lib/protontricks/_vdf/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/_vdf
  157. copying build/lib/protontricks/_vdf/vdict.py -> build/bdist.linux-x86_64/wheel/./protontricks/_vdf
  158. copying build/lib/protontricks/_vdf/LICENSE -> build/bdist.linux-x86_64/wheel/./protontricks/_vdf
  159. copying build/lib/protontricks/_vdf/README.rst -> build/bdist.linux-x86_64/wheel/./protontricks/_vdf
  160. creating build/bdist.linux-x86_64/wheel/protontricks/cli
  161. copying build/lib/protontricks/cli/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
  162. copying build/lib/protontricks/cli/command.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
  163. copying build/lib/protontricks/cli/desktop_install.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
  164. copying build/lib/protontricks/cli/launch.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
  165. copying build/lib/protontricks/cli/main.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
  166. copying build/lib/protontricks/cli/util.py -> build/bdist.linux-x86_64/wheel/./protontricks/cli
  167. creating build/bdist.linux-x86_64/wheel/protontricks/data
  168. creating build/bdist.linux-x86_64/wheel/protontricks/data/data
  169. copying build/lib/protontricks/data/data/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/data/data
  170. copying build/lib/protontricks/data/data/icon_placeholder.png -> build/bdist.linux-x86_64/wheel/./protontricks/data/data
  171. creating build/bdist.linux-x86_64/wheel/protontricks/data/scripts
  172. copying build/lib/protontricks/data/scripts/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
  173. copying build/lib/protontricks/data/scripts/bwrap_launcher.sh -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
  174. copying build/lib/protontricks/data/scripts/wine_launch.sh -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
  175. copying build/lib/protontricks/data/scripts/wineserver_keepalive.bat -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
  176. copying build/lib/protontricks/data/scripts/wineserver_keepalive.sh -> build/bdist.linux-x86_64/wheel/./protontricks/data/scripts
  177. creating build/bdist.linux-x86_64/wheel/protontricks/data/share
  178. creating build/bdist.linux-x86_64/wheel/protontricks/data/share/applications
  179. copying build/lib/protontricks/data/share/applications/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/data/share/applications
  180. copying build/lib/protontricks/data/share/applications/protontricks-launch.desktop -> build/bdist.linux-x86_64/wheel/./protontricks/data/share/applications
  181. copying build/lib/protontricks/data/share/applications/protontricks.desktop -> build/bdist.linux-x86_64/wheel/./protontricks/data/share/applications
  182. copying build/lib/protontricks/data/__init__.py -> build/bdist.linux-x86_64/wheel/./protontricks/data
  183. running install_data
  184. creating build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.data/data
  185. creating build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications
  186. copying src/protontricks/data/share/applications/protontricks.desktop -> build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications
  187. 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
  188. running install_egg_info
  189. Copying src/protontricks.egg-info to build/bdist.linux-x86_64/wheel/./protontricks-1.14.2.dev6+g28cfc0c00-py3.14.egg-info
  190. running install_scripts
  191. creating build/bdist.linux-x86_64/wheel/protontricks-1.14.2.dev6+g28cfc0c00.dist-info/WHEEL
  192. 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
  193. adding 'protontricks/__init__.py'
  194. adding 'protontricks/_version.py'
  195. adding 'protontricks/config.py'
  196. adding 'protontricks/flatpak.py'
  197. adding 'protontricks/gui.py'
  198. adding 'protontricks/steam.py'
  199. adding 'protontricks/util.py'
  200. adding 'protontricks/winetricks.py'
  201. adding 'protontricks/_vdf/LICENSE'
  202. adding 'protontricks/_vdf/README.rst'
  203. adding 'protontricks/_vdf/__init__.py'
  204. adding 'protontricks/_vdf/vdict.py'
  205. adding 'protontricks/cli/__init__.py'
  206. adding 'protontricks/cli/command.py'
  207. adding 'protontricks/cli/desktop_install.py'
  208. adding 'protontricks/cli/launch.py'
  209. adding 'protontricks/cli/main.py'
  210. adding 'protontricks/cli/util.py'
  211. adding 'protontricks/data/__init__.py'
  212. adding 'protontricks/data/data/__init__.py'
  213. adding 'protontricks/data/data/icon_placeholder.png'
  214. adding 'protontricks/data/scripts/__init__.py'
  215. adding 'protontricks/data/scripts/bwrap_launcher.sh'
  216. adding 'protontricks/data/scripts/wine_launch.sh'
  217. adding 'protontricks/data/scripts/wineserver_keepalive.bat'
  218. adding 'protontricks/data/scripts/wineserver_keepalive.sh'
  219. adding 'protontricks/data/share/applications/__init__.py'
  220. adding 'protontricks/data/share/applications/protontricks-launch.desktop'
  221. adding 'protontricks/data/share/applications/protontricks.desktop'
  222. adding 'protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications/protontricks-launch.desktop'
  223. adding 'protontricks-1.14.2.dev6+g28cfc0c00.data/data/share/applications/protontricks.desktop'
  224. adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/licenses/LICENSE'
  225. adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/METADATA'
  226. adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/WHEEL'
  227. adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/entry_points.txt'
  228. adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/top_level.txt'
  229. adding 'protontricks-1.14.2.dev6+g28cfc0c00.dist-info/RECORD'
  230. removing build/bdist.linux-x86_64/wheel
  231. Successfully built protontricks-1.14.2.dev6+g28cfc0c00-py3-none-any.whl
  232. ==> Starting check()...
  233. ========================================================================================================= test session starts ==========================================================================================================
  234. platform linux -- Python 3.14.5, pytest-9.0.3, pluggy-1.6.0
  235. rootdir: /home/rain/.cache/yay/protontricks-git/src/protontricks
  236. configfile: pyproject.toml
  237. collected 172 items
  238.  
  239. tests/cli/test_desktop_install.py . [ 0%]
  240. tests/cli/test_launch.py ............ [ 7%]
  241. tests/cli/test_main.py ....FFFF...F...................F...F.................. [ 38%]
  242. tests/cli/test_util.py ...... [ 42%]
  243. tests/test_config.py .. [ 43%]
  244. tests/test_flatpak.py ......... [ 48%]
  245. tests/test_gui.py ..F................ [ 59%]
  246. tests/test_steam.py ..................................................... [ 90%]
  247. tests/test_util.py FF............ [ 98%]
  248. tests/test_winetricks.py .. [100%]
  249.  
  250. =============================================================================================================== FAILURES ===============================================================================================================
  251. _____________________________________________________________________________________________ TestCLIRun.test_run_winetricks_select_steam ______________________________________________________________________________________________
  252.  
  253. 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>
  254. default_proton = <protontricks.steam.SteamApp object at 0x7f8d430abe20>, command_mock = <conftest.CommandMock object at 0x7f8d4322e350>
  255. home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser')
  256.  
  257. def test_run_winetricks_select_steam(
  258. self, cli, steam_app_factory, default_proton, command_mock,
  259. home_dir):
  260. """
  261. Perform a Protontricks command while selecting a specific
  262. Steam installation directory
  263. """
  264. steam_app_factory(name="Fake game", appid=10)
  265. os.rename(
  266. str(home_dir / ".steam" / "steam"),
  267. str(home_dir / ".steam_new")
  268. )
  269. os.rename(
  270. str(home_dir / ".steam" / "root" / "ubuntu12_32"),
  271. str(home_dir / ".steam_new" / "ubuntu12_32")
  272. )
  273.  
  274. cli(
  275. ["10", "winecfg"],
  276. env={"STEAM_DIR": str(home_dir / ".steam_new")}
  277. )
  278.  
  279. command = command_mock.commands[-1]
  280. > assert command.env["WINE"] == str(
  281. home_dir / ".cache" / "protontricks" / "proton"
  282. / "Proton 4.20" / "bin" / "wine"
  283. )
  284. E AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
  285. E
  286. E - /tmp/pytest-of-rain/pytest-4/test_run_winetricks_select_ste0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin/wine
  287. E + /home/rain/.cache/protontricks/proton/Proton 4.20/bin/wine
  288.  
  289. tests/cli/test_main.py:118: AssertionError
  290. ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
  291. 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
  292. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  293. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  294. DEBUG protontricks:util.py:86 Stream log handler added
  295. 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.
  296. 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
  297. INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
  298. INFO protontricks:steam.py:1150 Found 0 Steam library folders
  299. DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
  300. DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
  301. 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
  302. 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
  303. 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')]
  304. 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
  305. 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
  306. DEBUG protontricks:steam.py:955 Found compatdata directories for app 123450: []
  307. DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
  308. INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
  309. INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
  310. DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 10
  311. 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
  312. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  313. DEBUG protontricks:steam.py:789 Found ToolMapping entry
  314. DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
  315. INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_420
  316. DEBUG protontricks:steam.py:706 proton_420 has compat tool aliases ['proton_420', 'proton-stable', 'proton_420']
  317. INFO protontricks:steam.py:919 Found active compatibility tool: Proton 4.20
  318. INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
  319. DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
  320. DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
  321. DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
  322. INFO protontricks:util.py:550 Using 'bwrap = False' as default value
  323. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
  324. INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
  325. INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
  326. 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']
  327. ___________________________________________________________________________________________ TestCLIRun.test_run_winetricks_steam_runtime_v1 ____________________________________________________________________________________________
  328.  
  329. 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>
  330. 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>
  331. command_mock = <conftest.CommandMock object at 0x7f8d4322e150>, home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser')
  332.  
  333. def test_run_winetricks_steam_runtime_v1(
  334. self, cli, steam_app_factory, steam_runtime_dir, default_proton,
  335. command_mock, home_dir):
  336. """
  337. Perform a Protontricks command using the older Steam Runtime
  338. bundled with Steam
  339. """
  340. steam_app_factory(name="Fake game 1", appid=10)
  341.  
  342. cli(["10", "winecfg"], env={"STEAM_RUNTIME": "1"})
  343.  
  344. wine_bin_dir = (
  345. home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
  346. / "bin"
  347. )
  348.  
  349. # winecfg was actually run
  350. command = command_mock.commands[-1]
  351. assert str(command.args[0]).endswith(".local/bin/winetricks")
  352. assert command.args[1] == "winecfg"
  353. > assert command.env["PATH"].startswith(str(wine_bin_dir))
  354. E AssertionError: assert False
  355. 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')
  356. 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
  357. 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'))
  358.  
  359. tests/cli/test_main.py:147: AssertionError
  360. ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
  361. 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
  362. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  363. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  364. DEBUG protontricks:util.py:86 Stream log handler added
  365. INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt0/home/fakeuser/.steam/steam
  366. 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
  367. INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
  368. INFO protontricks:steam.py:1150 Found 0 Steam library folders
  369. DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
  370. DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
  371. 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
  372. 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
  373. 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')]
  374. 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
  375. 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
  376. DEBUG protontricks:steam.py:955 Found compatdata directories for app 123450: []
  377. DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
  378. INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
  379. INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
  380. DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 10
  381. 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
  382. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  383. DEBUG protontricks:steam.py:789 Found ToolMapping entry
  384. DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
  385. INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_420
  386. DEBUG protontricks:steam.py:706 proton_420 has compat tool aliases ['proton_420', 'proton-stable', 'proton_420']
  387. INFO protontricks:steam.py:919 Found active compatibility tool: Proton 4.20
  388. INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
  389. DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
  390. DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
  391. DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
  392. INFO protontricks:util.py:550 Using 'bwrap = False' as default value
  393. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
  394. INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
  395. INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
  396. 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']
  397. ___________________________________________________________________________________________ TestCLIRun.test_run_winetricks_steam_runtime_v2 ____________________________________________________________________________________________
  398.  
  399. 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')
  400. 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')
  401. 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>
  402. caplog = <_pytest.logging.LogCaptureFixture object at 0x7f8d432182d0>
  403.  
  404. def test_run_winetricks_steam_runtime_v2(
  405. self, cli, home_dir, steam_app_factory, steam_runtime_dir,
  406. steam_runtime_soldier, command_mock, proton_factory, caplog):
  407. """
  408. Perform a Protontricks command using a newer Steam Runtime that is
  409. installed as its own application
  410. """
  411. proton_app = proton_factory(
  412. name="Proton 5.13", appid=10, compat_tool_name="proton_513",
  413. is_default_proton=True, required_tool_app=steam_runtime_soldier
  414. )
  415. steam_app_factory(name="Fake game 1", appid=20)
  416.  
  417. cli(["20", "winecfg"], env={"STEAM_RUNTIME": "1"})
  418.  
  419. wine_bin_dir = (
  420. home_dir / ".cache" / "protontricks" / "proton" / "Proton 5.13"
  421. / "bin"
  422. )
  423.  
  424. # Launcher process was launched to handle launching processes
  425. # inside the sandbox
  426. > assert command_mock.commands[0].args[0] \
  427. == str(wine_bin_dir / "bwrap-launcher")
  428. E AssertionError: assert '/home/rain/....wrap-launcher' == '/tmp/pytest-...wrap-launcher'
  429. E
  430. E - /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.cache/protontricks/proton/Proton 5.13/bin/bwrap-launcher
  431. E + /home/rain/.cache/protontricks/proton/Proton 5.13/bin/bwrap-launcher
  432.  
  433. tests/cli/test_main.py:193: AssertionError
  434. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  435. 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
  436. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  437. DEBUG protontricks:util.py:86 Stream log handler added
  438. INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt1/home/fakeuser/.steam/steam
  439. 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
  440. INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
  441. INFO protontricks:steam.py:1150 Found 0 Steam library folders
  442. DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
  443. DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
  444. 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
  445. 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
  446. 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')]
  447. 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
  448. 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
  449. DEBUG protontricks:steam.py:955 Found compatdata directories for app 10: []
  450. 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
  451. 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
  452. DEBUG protontricks:steam.py:955 Found compatdata directories for app 1391110: []
  453. DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
  454. INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
  455. INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
  456. DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 20
  457. 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
  458. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  459. DEBUG protontricks:steam.py:789 Found ToolMapping entry
  460. DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
  461. INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_513
  462. DEBUG protontricks:steam.py:706 proton_513 has compat tool aliases ['proton_513', 'proton_513']
  463. INFO protontricks:steam.py:919 Found active compatibility tool: Proton 5.13
  464. INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
  465. DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
  466. DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
  467. DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
  468. INFO protontricks:util.py:550 Using 'bwrap = True' as default value
  469. INFO protontricks:util.py:566 Using separately installed Steam Runtime: Steam Linux Runtime - Soldier
  470. INFO protontricks:util.py:573 Running Steam Runtime using bwrap containerization.
  471. 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.
  472. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 5.13/bin
  473. INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
  474. INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
  475. INFO protontricks:util.py:641 Starting bwrap launcher process: /home/rain/.cache/protontricks/proton/Proton 5.13/bin/bwrap-launcher
  476. INFO protontricks:util.py:676 bwrap launcher started
  477. 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']
  478. INFO protontricks:util.py:710 Terminating launcher process 5
  479. INFO protontricks:util.py:716 Launcher process terminated
  480. _______________________________________________________________________________________ TestCLIRun.test_run_winetricks_steam_runtime_v2_no_bwrap _______________________________________________________________________________________
  481.  
  482. 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')
  483. 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')
  484. 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>
  485. caplog = <_pytest.logging.LogCaptureFixture object at 0x7f8d4321ab70>
  486.  
  487. def test_run_winetricks_steam_runtime_v2_no_bwrap(
  488. self, cli, home_dir, steam_app_factory, steam_runtime_dir,
  489. steam_runtime_soldier, command_mock, proton_factory, caplog):
  490. """
  491. Perform a Protontricks command using a newer Steam Runtime
  492. *without* bwrap that is installed as its own application
  493. """
  494. proton_app = proton_factory(
  495. name="Proton 5.13", appid=10, compat_tool_name="proton_513",
  496. is_default_proton=True, required_tool_app=steam_runtime_soldier
  497. )
  498. steam_app_factory(name="Fake game 1", appid=20)
  499.  
  500. cli(["--no-bwrap", "20", "winecfg"], env={"STEAM_RUNTIME": "1"})
  501.  
  502. wine_bin_dir = (
  503. home_dir / ".cache" / "protontricks" / "proton" / "Proton 5.13"
  504. / "bin"
  505. )
  506.  
  507. command = command_mock.commands[-1]
  508. # winecfg was run
  509. assert str(command.args[0]).endswith(".local/bin/winetricks")
  510. assert command.args[1] == "winecfg"
  511. > assert command.env["PATH"].startswith(str(wine_bin_dir))
  512. E AssertionError: assert False
  513. 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')
  514. 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
  515. 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'))
  516.  
  517. tests/cli/test_main.py:261: AssertionError
  518. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  519. 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
  520. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  521. DEBUG protontricks:util.py:86 Stream log handler added
  522. INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_winetricks_steam_runt2/home/fakeuser/.steam/steam
  523. 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
  524. INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
  525. INFO protontricks:steam.py:1150 Found 0 Steam library folders
  526. DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
  527. DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
  528. 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
  529. 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
  530. 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')]
  531. 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
  532. 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
  533. DEBUG protontricks:steam.py:955 Found compatdata directories for app 10: []
  534. 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
  535. 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
  536. DEBUG protontricks:steam.py:955 Found compatdata directories for app 1391110: []
  537. DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
  538. INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
  539. INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
  540. DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 20
  541. 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
  542. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  543. DEBUG protontricks:steam.py:789 Found ToolMapping entry
  544. DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
  545. INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_513
  546. DEBUG protontricks:steam.py:706 proton_513 has compat tool aliases ['proton_513', 'proton_513']
  547. INFO protontricks:steam.py:919 Found active compatibility tool: Proton 5.13
  548. INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
  549. DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
  550. DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
  551. DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
  552. INFO protontricks:util.py:566 Using separately installed Steam Runtime: Steam Linux Runtime - Soldier
  553. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 5.13/bin
  554. INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
  555. INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
  556. 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']
  557. _____________________________________________________________________________________ TestCLIRun.test_run_background_wineserver_toggle[args3-True] _____________________________________________________________________________________
  558.  
  559. 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>
  560. 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']
  561. wineserver_launched = True, home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser')
  562.  
  563. @pytest.mark.parametrize(
  564. "args,wineserver_launched",
  565. [
  566. # background wineserver disabled for bwrap by default
  567. (["-c", "'echo nothing'", "20"], False),
  568.  
  569. # background wineserver also disabled by default for everything
  570. # else
  571. (["--no-bwrap", "-c", "'echo nothing'", "20"], False),
  572.  
  573. # Manually disable background wineserver
  574. (
  575. ["--no-background-wineserver", "-c", "'echo nothing'", "20"],
  576. False
  577. ),
  578.  
  579. # Manually enable background wineserver
  580. (
  581. [
  582. "--background-wineserver", "--no-bwrap",
  583. "-c", "'echo nothing'", "20"
  584. ],
  585. True
  586. )
  587. ]
  588. )
  589. def test_run_background_wineserver_toggle(
  590. self, cli, steam_app_factory, default_new_proton, command_mock,
  591. args, wineserver_launched, home_dir):
  592. """
  593. Try running a Protontricks command with different arguments
  594. and ensure background wineserver is (not) launched
  595. depending on the scenario
  596. """
  597. steam_app_factory(name="Fake game 1", appid=20)
  598.  
  599. cli(args)
  600.  
  601. wineserver_found = any(
  602. True for command in command_mock.commands
  603. if isinstance(command.args, str)
  604. and command.args == str(
  605. home_dir / ".cache/protontricks/proton/Proton 7.0/bin"
  606. / "wineserver-keepalive"
  607. )
  608. )
  609.  
  610. > assert wineserver_found == wineserver_launched
  611. E assert False == True
  612.  
  613. tests/cli/test_main.py:350: AssertionError
  614. ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
  615. 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
  616. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  617. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  618. DEBUG protontricks:util.py:86 Stream log handler added
  619. INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_background_wineserver3/home/fakeuser/.steam/steam
  620. 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
  621. INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
  622. INFO protontricks:steam.py:1150 Found 0 Steam library folders
  623. DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
  624. DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
  625. 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
  626. 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
  627. 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')]
  628. 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
  629. 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
  630. DEBUG protontricks:steam.py:955 Found compatdata directories for app 543210: []
  631. 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
  632. 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
  633. DEBUG protontricks:steam.py:955 Found compatdata directories for app 1391110: []
  634. DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
  635. INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
  636. INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
  637. DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 20
  638. 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
  639. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  640. DEBUG protontricks:steam.py:789 Found ToolMapping entry
  641. DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
  642. INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_70
  643. DEBUG protontricks:steam.py:706 proton_70 has compat tool aliases ['proton_70', 'proton_70']
  644. INFO protontricks:steam.py:919 Found active compatibility tool: Proton 7.0
  645. INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
  646. DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
  647. DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
  648. DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
  649. INFO protontricks:util.py:566 Using separately installed Steam Runtime: Steam Linux Runtime - Soldier
  650. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 7.0/bin
  651. INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
  652. INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
  653. INFO protontricks:util.py:679 Starting wineserver keepalive process: /home/rain/.cache/protontricks/proton/Proton 7.0/bin/wineserver-keepalive
  654. INFO protontricks:util.py:690 Attempting to run command 'echo nothing'
  655. INFO protontricks:util.py:703 Terminating wineserver keepalive process 5
  656. _______________________________________________________________________________________________________ TestCLIGUI.test_run_gui ________________________________________________________________________________________________________
  657.  
  658. self = <cli.test_main.TestCLIGUI object at 0x7f8d4344d1d0>, cli = <function _run_cli.<locals>.func at 0x7f8d434e68d0>, default_proton = <protontricks.steam.SteamApp object at 0x7f8d42ec9120>
  659. 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>
  660. home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser')
  661.  
  662. def test_run_gui(
  663. self, cli, default_proton, steam_app_factory, gui_provider,
  664. command_mock, home_dir):
  665. """
  666. Start the GUI and fake selecting a game
  667. """
  668. steam_app = steam_app_factory(name="Fake game 1", appid=10)
  669. proton_install_path = Path(default_proton.install_path)
  670.  
  671. # Fake the user selecting the game
  672. gui_provider.mock_stdout = "Fake game 1: 10"
  673.  
  674. cli(["--gui"])
  675.  
  676. command = command_mock.commands[-1]
  677. # 'winetricks --gui' was run for the game selected by user
  678. assert str(command.args[0]) == \
  679. str(home_dir / ".local" / "bin" / "winetricks")
  680. assert command.args[1] == "--gui"
  681.  
  682. # Correct environment vars were set
  683. > assert command.env["WINE"] == str(
  684. home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
  685. / "bin" / "wine"
  686. )
  687. E AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
  688. E
  689. E - /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin/wine
  690. E + /home/rain/.cache/protontricks/proton/Proton 4.20/bin/wine
  691.  
  692. tests/cli/test_main.py:765: AssertionError
  693. ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
  694. 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
  695. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  696. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  697. DEBUG protontricks:util.py:86 Stream log handler added
  698. INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.steam/steam
  699. 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
  700. INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
  701. INFO protontricks:steam.py:1150 Found 0 Steam library folders
  702. DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
  703. DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
  704. 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
  705. 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
  706. 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')]
  707. 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
  708. 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
  709. DEBUG protontricks:steam.py:955 Found compatdata directories for app 123450: []
  710. DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
  711. INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
  712. INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
  713. INFO protontricks:gui.py:48 Using 'yad' as GUI provider
  714. DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 10
  715. 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
  716. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  717. DEBUG protontricks:steam.py:789 Found ToolMapping entry
  718. DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
  719. INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_420
  720. DEBUG protontricks:steam.py:706 proton_420 has compat tool aliases ['proton_420', 'proton-stable', 'proton_420']
  721. INFO protontricks:steam.py:919 Found active compatibility tool: Proton 4.20
  722. INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
  723. DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
  724. DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
  725. DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
  726. INFO protontricks:util.py:550 Using 'bwrap = False' as default value
  727. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
  728. INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
  729. INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
  730. INFO protontricks:util.py:690 Attempting to run command ['/tmp/pytest-of-rain/pytest-4/test_run_gui0/home/fakeuser/.local/bin/winetricks', '--gui']
  731. ___________________________________________________________________________________________________ TestCLICommand.test_run_command ____________________________________________________________________________________________________
  732.  
  733. self = <cli.test_main.TestCLICommand object at 0x7f8d4344d450>, cli = <function _run_cli.<locals>.func at 0x7f8d42e71bc0>, default_proton = <protontricks.steam.SteamApp object at 0x7f8d42ec8fa0>
  734. 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>
  735. home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser')
  736.  
  737. def test_run_command(
  738. self, cli, default_proton, steam_app_factory, gui_provider,
  739. command_mock, home_dir):
  740. """
  741. Run a shell command for a given game
  742. """
  743. steam_app = steam_app_factory(name="Fake game", appid=10)
  744. proton_install_path = default_proton.install_path
  745.  
  746. cli(["-c", "bash", "10"])
  747.  
  748. command = command_mock.commands[-1]
  749.  
  750. # The command is just 'bash'
  751. assert command.args == "bash"
  752. assert command.cwd is None
  753. assert command.shell is True
  754.  
  755. # Correct environment vars were set
  756. > assert command.env["WINE"] == str(
  757. home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
  758. / "bin" / "wine"
  759. )
  760. E AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
  761. E
  762. E - /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin/wine
  763. E + /home/rain/.cache/protontricks/proton/Proton 4.20/bin/wine
  764.  
  765. tests/cli/test_main.py:841: AssertionError
  766. ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
  767. 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
  768. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  769. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  770. DEBUG protontricks:util.py:86 Stream log handler added
  771. INFO protontricks:steam.py:477 Found Steam directory at /tmp/pytest-of-rain/pytest-4/test_run_command0/home/fakeuser/.steam/steam
  772. 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
  773. INFO protontricks:winetricks.py:29 WINETRICKS environment variable is not available. Searching from $PATH.
  774. INFO protontricks:steam.py:1150 Found 0 Steam library folders
  775. DEBUG protontricks:gui.py:431 Following inaccessible paths were found: set()
  776. DEBUG protontricks:gui.py:440 Following paths have been ignored: set()
  777. 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
  778. 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
  779. 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')]
  780. 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
  781. 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
  782. DEBUG protontricks:steam.py:955 Found compatdata directories for app 123450: []
  783. DEBUG protontricks:steam.py:1375 Found Steam user entries: [{'steamid3': 42, 'account_name': 'TestUser', 'timestamp': '0'}]
  784. INFO protontricks:steam.py:1381 Currently logged-in Steam user: TestUser
  785. INFO protontricks:steam.py:1426 Couldn't find custom shortcuts. Maybe none have been created yet?
  786. DEBUG protontricks:steam.py:739 Finding Steam compat tool name for appid 10
  787. 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
  788. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  789. DEBUG protontricks:steam.py:789 Found ToolMapping entry
  790. DEBUG protontricks:steam.py:800 Found CompatToolMapping entry
  791. INFO protontricks:steam.py:853 User has configured default Proton version (CompatToolMapping): proton_420
  792. DEBUG protontricks:steam.py:706 proton_420 has compat tool aliases ['proton_420', 'proton-stable', 'proton_420']
  793. INFO protontricks:steam.py:919 Found active compatibility tool: Proton 4.20
  794. INFO protontricks:steam.py:1016 Active compatibility tool is a Proton installation
  795. DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
  796. DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
  797. DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
  798. INFO protontricks:util.py:550 Using 'bwrap = False' as default value
  799. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
  800. INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
  801. INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
  802. INFO protontricks:util.py:690 Attempting to run command bash
  803. __________________________________________________________________________________________ TestSelectApp.test_select_game_icons_ensure_resize __________________________________________________________________________________________
  804.  
  805. 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>
  806. 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')
  807.  
  808. def test_select_game_icons_ensure_resize(
  809. self, gui_provider, steam_app_factory, steam_dir, home_dir):
  810. """
  811. Select a game using the GUI. Ensure custom icons with sizes other than
  812. 32x32 are resized.
  813. """
  814. steam_apps = [
  815. steam_app_factory(name="Fake game 1", appid=10)
  816. ]
  817.  
  818. Image.new("RGB", (64, 64)).save(
  819. steam_dir / "appcache" / "librarycache" / "10_icon.jpg"
  820. )
  821.  
  822. gui_provider.mock_stdout = "Fake game 1: 10"
  823. select_steam_app_with_gui(steam_apps=steam_apps, steam_path=steam_dir)
  824.  
  825. # Resized icon should have been created with the correct size and used
  826. resized_icon_path = \
  827. home_dir / ".cache" / "protontricks" / "app_icons" / "10.jpg"
  828. > assert resized_icon_path.is_file()
  829. E AssertionError: assert False
  830. E + where False = is_file()
  831. 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
  832.  
  833. tests/test_gui.py:158: AssertionError
  834. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  835. INFO protontricks:gui.py:48 Using 'yad' as GUI provider
  836. 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
  837. ____________________________________________________________________________________________ TestCreateWineBinDir.test_wine_bin_dir_updated ____________________________________________________________________________________________
  838.  
  839. 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>
  840.  
  841. def test_wine_bin_dir_updated(self, home_dir, default_proton):
  842. """
  843. Test that the directory containing the helper scripts is kept
  844. up-to-date with the Proton installation's binaries
  845. """
  846. create_wine_bin_dir(default_proton)
  847.  
  848. # Check that the Wine binaries exist
  849. > files = get_files_in_dir(
  850. home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
  851. / "bin"
  852. )
  853.  
  854. tests/test_util.py:24:
  855. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  856. tests/test_util.py:12: in get_files_in_dir
  857. return {binary.name for binary in d.iterdir()}
  858. ^^^^^^^^^^^
  859. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  860.  
  861. self = PosixPath('/tmp/pytest-of-rain/pytest-4/test_wine_bin_dir_updated0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin')
  862.  
  863. def iterdir(self):
  864. """Yield path objects of the directory contents.
  865.  
  866. The children are yielded in arbitrary order, and the
  867. special entries '.' and '..' are not included.
  868. """
  869. root_dir = str(self)
  870. > with os.scandir(root_dir) as scandir_it:
  871. ^^^^^^^^^^^^^^^^^^^^
  872. 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'
  873.  
  874. /usr/lib/python3.14/pathlib/__init__.py:836: FileNotFoundError
  875. ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
  876. 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
  877. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  878. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  879. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
  880. _________________________________________________________________________________________ TestRunCommand.test_user_environment_variables_used __________________________________________________________________________________________
  881.  
  882. self = <test_util.TestRunCommand object at 0x7f8d432447d0>, default_proton = <protontricks.steam.SteamApp object at 0x7f8d431ede40>
  883. 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>
  884. home_dir = PosixPath('/tmp/pytest-of-rain/pytest-4/test_user_environment_variable0/home/fakeuser'), command_mock = <conftest.CommandMock object at 0x7f8d43387150>
  885. monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8d43386ac0>
  886.  
  887. def test_user_environment_variables_used(
  888. self, default_proton, steam_runtime_dir, steam_app_factory,
  889. home_dir, command_mock, monkeypatch):
  890. """
  891. Test that user-provided environment variables are used even when
  892. Steam Runtime is enabled
  893. """
  894. steam_app = steam_app_factory(name="Fake game", appid=10)
  895.  
  896. run_command(
  897. winetricks_path=Path("/usr/bin/winetricks"),
  898. proton_app=default_proton,
  899. steam_app=steam_app,
  900. command=["echo", "nothing"],
  901. use_steam_runtime=True,
  902. legacy_steam_runtime_path=steam_runtime_dir / "steam-runtime"
  903. )
  904.  
  905. # Proxy scripts are used if no environment variables are set by the
  906. # user
  907. wine_bin_dir = (
  908. home_dir / ".cache" / "protontricks" / "proton" / "Proton 4.20"
  909. / "bin"
  910. )
  911.  
  912. command = command_mock.commands[-1]
  913. assert command.args == ["echo", "nothing"]
  914. > assert command.env["WINE"] == str(wine_bin_dir / "wine")
  915. E AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
  916. E
  917. E - /tmp/pytest-of-rain/pytest-4/test_user_environment_variable0/home/fakeuser/.cache/protontricks/proton/Proton 4.20/bin/wine
  918. E + /home/rain/.cache/protontricks/proton/Proton 4.20/bin/wine
  919.  
  920. tests/test_util.py:83: AssertionError
  921. ---------------------------------------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------------------------------------
  922. 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
  923. DEBUG protontricks:steam.py:667 appinfo.vdf has magic number b'(DV\x07'
  924. ---------------------------------------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------------------------------------
  925. DEBUG protontricks:util.py:392 Following Wine DLL overrides already set: {}
  926. DEBUG protontricks:util.py:428 Setting default env var: WINE_LARGE_ADDRESS_AWARE=1
  927. DEBUG protontricks:util.py:428 Setting default env var: DXVK_ENABLE_NVAPI=1
  928. INFO protontricks:util.py:550 Using 'bwrap = False' as default value
  929. INFO protontricks:util.py:554 Using 'background-wineserver = False' as default value
  930. INFO protontricks:util.py:221 Created Steam Runtime Wine binary directory at /home/rain/.cache/protontricks/proton/Proton 4.20/bin
  931. INFO protontricks:util.py:609 WINE environment variable is not available. Setting WINE environment variable to Proton bundled version.
  932. INFO protontricks:util.py:621 WINESERVER environment variable is not available. Setting WINESERVER environment variable to Proton bundled version
  933. INFO protontricks:util.py:690 Attempting to run command ['echo', 'nothing']
  934. ======================================================================================================= short test summary info ========================================================================================================
  935. 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'
  936. FAILED tests/cli/test_main.py::TestCLIRun::test_run_winetricks_steam_runtime_v1 - AssertionError: assert False
  937. FAILED tests/cli/test_main.py::TestCLIRun::test_run_winetricks_steam_runtime_v2 - AssertionError: assert '/home/rain/....wrap-launcher' == '/tmp/pytest-...wrap-launcher'
  938. FAILED tests/cli/test_main.py::TestCLIRun::test_run_winetricks_steam_runtime_v2_no_bwrap - AssertionError: assert False
  939. FAILED tests/cli/test_main.py::TestCLIRun::test_run_background_wineserver_toggle[args3-True] - assert False == True
  940. FAILED tests/cli/test_main.py::TestCLIGUI::test_run_gui - AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
  941. FAILED tests/cli/test_main.py::TestCLICommand::test_run_command - AssertionError: assert '/home/rain/....4.20/bin/wine' == '/tmp/pytest-...4.20/bin/wine'
  942. FAILED tests/test_gui.py::TestSelectApp::test_select_game_icons_ensure_resize - AssertionError: assert False
  943. 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'
  944. 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'
  945. ==================================================================================================== 10 failed, 162 passed in 1.06s ====================================================================================================
  946. ==> ERROR: A failure occurred in check().
  947. Aborting...
  948. -> error making: protontricks-git-exit status 4
  949. checking dependencies...
  950.  
  951. Packages (2) python-vcs-versioning-1.1.1-1 python-setuptools-scm-10.0.5-1
  952.  
  953. Total Removed Size: 0,95 MiB
  954.  
  955. :: Do you want to remove these packages? [Y/n]
  956. :: Processing package changes...
  957. (1/2) removing python-setuptools-scm [#####################################################################################] 100%
  958. (2/2) removing python-vcs-versioning [#####################################################################################] 100%
  959. :: Running post-transaction hooks...
  960. (1/1) Arming ConditionNeedsUpdate...
  961. -> Failed to install the following packages. Manual intervention is required:
  962. protontricks-git - exit status 4
  963.  
Advertisement
Add Comment
Please, Sign In to add comment