mirror of
https://github.com/swarm-game/swarm.git
synced 2024-10-26 17:38:34 +03:00
85b33ef5c9
In preparation for #1483. `LogEntry` started life as something specific to robot logs. It then evolved to be used in the system log as well (see #1039 and #652), but in a sort of hacky way. This PR refactors `LogEntry` to be more generic. - Move `Swarm.Game.Log` -> `Swarm.Log` since it's not specific to gameplay. - Rename `ErrorLevel` to `Severity`, add a new `Info` level, and add a top-level `leSeverity` field - Rename `leRobotName` to just `leName`, since it was already being used to name both robots and system components anyway - Move robot-specific fields (*e.g.* robot ID) into the new `RobotLogSource` type, and add `LogSource` to differentiate between robot and system logs - Various other minor improvements and tweaks
8 lines
220 B
Bash
Executable File
8 lines
220 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd $SCRIPT_DIR/..
|
|
|
|
# See https://github.com/swarm-game/swarm/issues/936
|
|
STACK_WORK=.stack-work-test stack test --fast "$@"
|