Skip to content

Commit

Permalink
Test listing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mackdk committed Sep 29, 2023
1 parent baf09e4 commit 00e3e96
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions testsuite/podman_runner/run_db_migrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ else
exit 1
fi

echo "****************************************** FIND"
find ${upgrade_dir} -name "$1-*-to-*"
echo "****************************************** FIND + SED "
find ${upgrade_dir} -name "$1-*-to-*" | sed -n "/$1-$2-to-.*$/,$ p"
echo "****************************************** FIND + SORT"
find ${upgrade_dir} -name "$1-*-to-*" | sort
echo "****************************************** FIND + SORT + SED"
find ${upgrade_dir} -name "$1-*-to-*" | sort | sed -n "/$1-$2-to-.*$/,$ p"
echo "****************************************** DONE"

# Including all sub-folders of the upgrade dir that comes after the one called "${schema_name}-${schema_version}-to-..."
# This should make sure we apply all the scripts meant to be executed on top of the current schema version.
# It probably won't happen often that we have multiple pending directories, but it could happen in case of re-tagging
Expand Down

0 comments on commit 00e3e96

Please sign in to comment.