You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/crash_test.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,8 @@ def Do(self):
65
65
vmtype="0"ifSYMBOL_ZIPSelse"1"
66
66
print("Running daemon...")
67
67
p=subprocess.run([self.engine,
68
+
"-noforward", # catch stupid Linux persistent sockets (if gamelogic test...)
69
+
"-homepath", self.dir,
68
70
"-set", "vm.sgame.type", vmtype,
69
71
"-set", "vm.cgame.type", vmtype,
70
72
"-set", "sv_fps", "1000",
@@ -74,7 +76,6 @@ def Do(self):
74
76
"-set", "net_enabled", "0",
75
77
"-set", "common.framerate.max", "0",
76
78
"-set", "cg_navgenOnLoad", "0",
77
-
"-homepath", self.dir,
78
79
*DAEMON_USER_ARGS,
79
80
*["+devmap plat23"] * (self.tprefix=="sgame."),
80
81
"+delay 20f echo CRASHTEST_BEGIN",
@@ -104,7 +105,7 @@ def Virtualize(cmdline):
104
105
vm=parts[3]
105
106
path="/"+"/".join(parts[4:])
106
107
return ["wsl", "-d", vm, "--", path] +args
107
-
ifbin.endswith(".py"):
108
+
elifbin.endswith(".py"):
108
109
return [sys.executable] +cmdline
109
110
returncmdline
110
111
@@ -157,7 +158,7 @@ def ArgParser(usage=None):
157
158
ap=argparse.ArgumentParser(
158
159
usage=usage,
159
160
description="Verify that Breakpad toolchain can produce usable stack traces."
160
-
" A Daemon build must be found in the current directory. Also Breakpad's tools must be built in its source tree."
161
+
" A Daemon build must be found in the current directory (or --game-dir). Also Breakpad's tools must be built in its source tree."
161
162
" If a symbols zip is found in the current directory, enter release validation mode: prebuilt symbols are used and VM type defaults to 0 (NaCl from paks)."
162
163
" Otherwise, enter end-to-end mode: symbols are produced from the binaries and VM type defaults to 1 (NaCl from PWD). In this mode you will likely need to provide pak paths via --daemon-args.")
163
164
ap.add_argument("--game-dir", type=str, default=".", help="Path to Daemon (+ gamelogic) binaries")
0 commit comments