Skip to content

Commit 5a0cc95

Browse files
committed
noforward
1 parent 33a8d64 commit 5a0cc95

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tools/crash_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ def Do(self):
6565
vmtype = "0" if SYMBOL_ZIPS else "1"
6666
print("Running daemon...")
6767
p = subprocess.run([self.engine,
68+
"-noforward", # catch stupid Linux persistent sockets (if gamelogic test...)
69+
"-homepath", self.dir,
6870
"-set", "vm.sgame.type", vmtype,
6971
"-set", "vm.cgame.type", vmtype,
7072
"-set", "sv_fps", "1000",
@@ -74,7 +76,6 @@ def Do(self):
7476
"-set", "net_enabled", "0",
7577
"-set", "common.framerate.max", "0",
7678
"-set", "cg_navgenOnLoad", "0",
77-
"-homepath", self.dir,
7879
*DAEMON_USER_ARGS,
7980
*["+devmap plat23"] * (self.tprefix == "sgame."),
8081
"+delay 20f echo CRASHTEST_BEGIN",
@@ -104,7 +105,7 @@ def Virtualize(cmdline):
104105
vm = parts[3]
105106
path = "/" + "/".join(parts[4:])
106107
return ["wsl", "-d", vm, "--", path] + args
107-
if bin.endswith(".py"):
108+
elif bin.endswith(".py"):
108109
return [sys.executable] + cmdline
109110
return cmdline
110111

@@ -157,7 +158,7 @@ def ArgParser(usage=None):
157158
ap = argparse.ArgumentParser(
158159
usage=usage,
159160
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."
161162
" 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)."
162163
" 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.")
163164
ap.add_argument("--game-dir", type=str, default=".", help="Path to Daemon (+ gamelogic) binaries")

0 commit comments

Comments
 (0)