]> Sergey Matveev's repositories - bfs.git/commit
tests: Always create the scratch directory
authorTavian Barnes <tavianator@tavianator.com>
Fri, 13 Oct 2023 17:52:01 +0000 (13:52 -0400)
committerTavian Barnes <tavianator@tavianator.com>
Fri, 13 Oct 2023 18:17:53 +0000 (14:17 -0400)
commit3780856f7503096e01a64f19eb6051b765db252e
tree9dbf272cf39d981e32cd7ef98f78d10e19e95068
parent6539791c7da12ab9e1dcca445faf1cd0b0bb302a
tests: Always create the scratch directory

Otherwise, some tests that try to check for flag support like

    invoke_bfs scratch -quit -xattr || skip

can be accidentally skipped if ./scratch doesn't exist yet:

    $ ./tests/tests.sh bsd/xattr
    tests skipped: 1

After this patch, we get the expected

    $ ./tests/tests.sh bsd/xattr
    tests passed: 1
tests/tests.sh