home · contact · privacy
More helpfulness on how to start over in a new game world.
[plomrogue] / test_server.sh
index 46e5201fa324f495315cd678c7aaf6253a0b363c..83dc5deb8a4bccfccf601bbe63db948bb6a5e6c8 100755 (executable)
@@ -2,7 +2,7 @@
 
 cp ./testing/start _test
 echo "Starting server on save file '_test' copied from ./testing/start."
-python3 -m cProfile -o ./testing/cProfile roguelike-server -l _test > ./testing/log 2>&1 &
+python3 -m cProfile -o ./testing/cProfile roguelike-server -l _test &
 
 echo "Waiting until ./server/in is ready for writing."
 while [ ! -e ./server/in ]
@@ -21,8 +21,7 @@ done
 
 echo "Server has quit. Here's the diff of final '_test' to reference save file"
 echo "./testing/ref_end (TEST WENT WELL IF NO LINES FOLLOW):"
-diff _test testing/ref_end > ./testing/diff
-cat ./testing/diff
+mv _test testing/last_end
+diff testing/last_end testing/ref_end
 
-rm _test
 rm record__test