apparmor/tests
John Johansen a422d2ea17 Merge Partial fix for regression tests if parent directory contains spaces
Most `tests/regression/apparmor/*.sh` scripts contain

    . $bin/prologue.inc

This will explode if one of the parent directories contains a space.

Minimized reproducer:

```
# cat test.sh
pwd=`dirname $0`
pwd=`cd $pwd ; /bin/pwd`
bin=$pwd
echo "pwd: $bin"
. $bin/prologue.inc
# ./test.sh
pwd: /tmp/foo bar
./test.sh: line 9: /tmp/foo: No such file or directory
```

Notice that test.sh tries to source `/tmp/foo` instead of `/tmp/foo bar/prologue.inc`.

The fix is to quote the prologue.inc path:

    . "$bin/prologue.inc"

While on it, also fix other uses of $bin - directly and indirectly - by quoting them.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1418
Approved-by: Ryan Lee <rlee287@yahoo.com>
Approved-by: John Johansen <john@jjmx.net>
Merged-by: John Johansen <john@jjmx.net>
2024-11-15 00:46:04 +00:00
..
bin Break lines before binary operators. 2022-08-21 11:15:07 -04:00
regression Merge Partial fix for regression tests if parent directory contains spaces 2024-11-15 00:46:04 +00:00
stress tests: fix make clean target 2018-11-16 14:16:07 -08:00
checkstyle2junit.xslt CI: add shellcheck job, with minimum severity set to error 2022-02-13 19:43:48 +00:00
Makefile all: Use the MAKE variable 2017-11-01 23:22:53 +00:00