DRYing the ci/run_memory_available_tests.sh stuff up