Bash arrays cannot be exported, so we need to redefine it in each subtest Follow-up for 680dec33f2
680dec33f2
The test script is quite long and hard to read. Split it. Start with one image-based and one directory-based subtest.