Skip to content

Commit a354203

Browse files
committed
test: small file layout change to kind tests
let's keep the profiles directory limited to just profiles, and move the ".d" associated files into a sibling directory. this will make it easier to iterate over profiles.
1 parent 1b82505 commit a354203

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/kind/run.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ function run {
3636
local guidebook=${2-$GUIDEBOOK}
3737
local yes=$([ -z "$FORCE_ALL" ] && [ "$FORCE" != "$profile" ] && [ -f "$MWPROFILES_PATH/$profile" ] && echo "--yes" || echo "")
3838

39-
if [ -f "$MWPROFILES_PATH"/$profile.d/pre ]; then
39+
local PRE="$MWPROFILES_PATH"/../profiles.d/$profile/pre
40+
if [ -f "$PRE" ]; then
4041
echo "Running pre guidebooks for profile $profile"
41-
cat "$MWPROFILES_PATH"/$profile.d/pre | xargs -n1 "$ROOT"/bin/codeflare -p $profile $yes
42+
cat "$PRE" | xargs -n1 "$ROOT"/bin/codeflare -p $profile $yes
4243
fi
4344

4445
echo "Running with profile $profile"

0 commit comments

Comments
 (0)