mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-11 14:33:47 -05:00
_listFiles_: use extended regex and return 0 if no files found
This commit is contained in:
@@ -186,6 +186,11 @@ _testListFiles_() {
|
||||
run _listFiles_ "g"
|
||||
assert_failure
|
||||
}
|
||||
|
||||
@test "_listFiles: fail when no files found" {
|
||||
run _listFiles_ regex ".*notest[0-9]\.txt" "${TESTDIR}"
|
||||
assert_failure
|
||||
}
|
||||
}
|
||||
|
||||
_testMakeSymlink_() {
|
||||
|
||||
Reference in New Issue
Block a user