Skip to content

Commit

Permalink
test: fix fake ship tests on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
ripperi committed Oct 2, 2024
1 parent e5930d6 commit 865be63
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions test-fake-ship.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,31 @@ cp urbit-output test-output-agents
cp urbit-output test-output-generators
cp urbit-output test-output-marks

# TODO: when re-enabling fake ship tests on macOS, use `sed -i ''`
# instead of `sed -i`.
sed -i '0,/test-unit-start/d' test-output-unit
sed -i '/test-unit-end/,$d' test-output-unit
if [[ $URBIT_BINARY == *"macos"* ]]; then
sed -i '' '0,/test-unit-start/d' test-output-unit
sed -i '' '/test-unit-end/,$d' test-output-unit

sed -i '0,/test-agents-start/d' test-output-agents
sed -i '/test-agents-end/,$d' test-output-agents
sed -i '' '0,/test-agents-start/d' test-output-agents
sed -i '' '/test-agents-end/,$d' test-output-agents

sed -i '0,/test-generators-start/d' test-output-generators
sed -i '/test-generators-end/,$d' test-output-generators
sed -i '' '0,/test-generators-start/d' test-output-generators
sed -i '' '/test-generators-end/,$d' test-output-generators

sed -i '0,/test-marks-start/d' test-output-marks
sed -i '/test-marks-end/,$d' test-output-marks
sed -i '' '0,/test-marks-start/d' test-output-marks
sed -i '' '/test-marks-end/,$d' test-output-marks
else
sed -i '0,/test-unit-start/d' test-output-unit
sed -i '/test-unit-end/,$d' test-output-unit

sed -i '0,/test-agents-start/d' test-output-agents
sed -i '/test-agents-end/,$d' test-output-agents

sed -i '0,/test-generators-start/d' test-output-generators
sed -i '/test-generators-end/,$d' test-output-generators

sed -i '0,/test-marks-start/d' test-output-marks
sed -i '/test-marks-end/,$d' test-output-marks
fi

OUTDIR="$(pwd)/test-fake-ship-output"
mkdir -p $OUTDIR
Expand Down

0 comments on commit 865be63

Please sign in to comment.