mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
141bd37a36
Currently 'new' script sources common/config which tries to find mkfs and fails if not found (which is likely for non-root user). This is inconvenient as development usually does not happen as root. In fact the vast majority of setup in common/config and common/rc is not necessary for 'new'. Split out the necessary bits into new common/test_names and use it in 'new'. Cleanup common/rc and common/config now that they're only used from 'check' and 'setup'. Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
13 lines
312 B
Plaintext
13 lines
312 B
Plaintext
##/bin/bash
|
|
|
|
# Valid test names start with 3 digits "NNN":
|
|
# "[0-9]\{3\}"
|
|
# followed by an optional "-":
|
|
# "-\?"
|
|
# followed by an optional combination of alphanumeric and "-" chars:
|
|
# "[[:alnum:]-]*"
|
|
# e.g. 999-the-mark-of-fstests
|
|
#
|
|
VALID_TEST_ID="[0-9]\{3\}"
|
|
VALID_TEST_NAME="$VALID_TEST_ID-\?[[:alnum:]-]*"
|