Make this test setup a multi-line command so that it passes on Linux and is skipped on other OSes.

This commit is contained in:
Geoff Greer 2015-01-19 20:59:58 -08:00
parent 301f487b68
commit af506c818f

View file

@ -1,10 +1,10 @@
Setup:
$ . $TESTDIR/setup.sh
$ if [ ! -e "/dev/shm" ]; then
$ echo "No /dev/shm. Skipping test."
$ exit 80
$ fi
> if [ ! -e "/dev/shm" ]; then
> echo "No /dev/shm. Skipping test."
> exit 80
> fi
$ TEST_TMPDIR=`mktemp -d --tmpdir=/dev/shm ag_test.XXX`
$ echo "blah" > $TEST_TMPDIR/blah.txt
$ ln -s $TEST_TMPDIR other_device