Created
September 21, 2016 16:59
-
-
Save joshcooper/29ec4ddd05cad1e0171e4096bcdc03f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RESOURCE_REQUESTS_TEST_TARGET={"el-7":"centos-7=1",...} | |
| RESOURCE_REQUESTS_BUILD_TARGET={"el-7":"centos-7=1",...} | |
| RESOURCE_REQUESTS_<resourceTargetParam> | |
| RESOURCE_REQUESTS_<name> | |
| RESOURCE_REQUESTS_beaker={$resourceTargetParam:"centos-7"} | |
| RESOURCE_REQUESTS_vanagon | |
| RMM_BUILD_TARGETS_RESOURCE_REQUESTS_el-7=.... | |
| TEST_TARGET="centos-7" | |
| { | |
| "centos-7": [ { "rhel7-8x6_64" => 2 }, {... } ], | |
| "ubuntu1404": [ { }, { } ] | |
| } | |
| RESOURCE_REQUESTS_NAME=beaker |
joshcooper
commented
Sep 21, 2016
Author
if [ -n "$TEST_TARGETS" ]; then
echo -n "RESOURCE_REQUESTS_beaker={"
unset ADD_COMMA
for TARGET in $TEST_TARGETS
do
if [ -n "$ADD_COMMA" ]; then echo -n ", "; fi
ABS_RESOURCES=$(bundle exec beaker-hostgenerator $TARGET --hypervisor abs --templates-only")
echo -n '"'${TARGET}'":"'${ABS_RESOURCES}'"'
ADD_COMMA=true
done
echo "}"
else
echo "TEST_TARGETS is not set!"
fi
=>
RESOURCE_REQUESTS_beaker={"el7-64":"ubuntu-1404-x86_64=1", "ubuntu-1404-x86_64":"ubuntu-1404-x86_64=1", "sles11":"ubuntu-1404-x86_64=1"}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment