Improve serverbench command WRT #273
authorbones_was_here <bones_was_here@yahoo.com.au>
Wed, 2 Oct 2019 17:34:22 +0000 (03:34 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Wed, 2 Oct 2019 17:34:22 +0000 (03:34 +1000)
.gitignore
misc/tools/all/xonotic.subr

index ab43afb..a34881c 100644 (file)
@@ -16,3 +16,4 @@
 
 .idea/
 /result*
+/SERVERBENCH_TEMP
index 9bc4cd6..dabd1fd 100644 (file)
@@ -395,12 +395,14 @@ case "$cmd" in
                ;;
        serverbench)
                # TODO(rpolzer): Why does :anticheat: output differ? Total game time differs? Why?
-               verbose "$SELF" run "$@" -noconfig -nohome +exec serverbench.cfg |\
+               mkdir SERVERBENCH_TEMP
+               verbose "$SELF" run dedicated -noconfig -userdir SERVERBENCH_TEMP +exec serverbench.cfg |\
                        tee /dev/stderr |\
                        grep '^:' |\
                        grep -v '^:gamestart:' |\
                        grep -v '^:anticheat:' |\
                        md5sum
+               rm -rf SERVERBENCH_TEMP
                ;;
        *)
                handled=false