Skip to content

Commit

Permalink
libtest: allow committing to alternative branches
Browse files Browse the repository at this point in the history
This will be used by the upcoming test-admin-upgrade-endoflife.sh

Closes: #874
Approved by: cgwalters
  • Loading branch information
dsd authored and rh-atomic-bot committed May 22, 2017
1 parent a2be461 commit cd65f85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/libtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ os_repository_new_commit ()
{
boot_checksum_iteration=${1:-0}
content_iteration=${2:-0}
branch=${3:-testos/buildmaster/x86_64-runtime}
echo "BOOT ITERATION: $boot_checksum_iteration"
cd ${test_tmpdir}/osdata
rm boot/*
Expand All @@ -464,7 +465,7 @@ os_repository_new_commit ()

version=$(date "+%Y%m%d.${content_iteration}")

${CMD_PREFIX} ostree --repo=${test_tmpdir}/testos-repo commit --add-metadata-string "version=${version}" -b testos/buildmaster/x86_64-runtime -s "Build"
${CMD_PREFIX} ostree --repo=${test_tmpdir}/testos-repo commit --add-metadata-string "version=${version}" -b $branch -s "Build"
cd ${test_tmpdir}
}

Expand Down

0 comments on commit cd65f85

Please sign in to comment.