1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

Tests: Run each test in their respective directories

This is so they can find their associated resources and it's
the same behavior as in Lagom.

This also required changing some tests so that they could
write their resources in a writable location.
This commit is contained in:
coderdreams 2021-05-30 12:15:20 -03:00 committed by Ali Mohammad Pur
parent 9ffb3e7e30
commit 6bc7f2204e
3 changed files with 16 additions and 4 deletions

View file

@ -1,6 +1,8 @@
#!/bin/sh
source $(dirname "$0")/test-commons.inc
# go to a writable directory
cd /tmp
# Simple usage, single doc
echo <<-test > sh.doc.test
@ -71,4 +73,6 @@ test
test2
rm -f sh.doc.test
# return to original directory
cd -
pass