summaryrefslogtreecommitdiff
path: root/tests/libtest.sh
diff options
context:
space:
mode:
authorJonathan Lebon <jonathan@jlebon.com>2019-03-01 09:16:55 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2019-03-09 19:44:15 +0000
commit978cffed70640cca66cb1623dea68b179288b453 (patch)
treefe1daa95f4bd529b05c128ccb20061b121742ca7 /tests/libtest.sh
parent21ebc7d21edd00c3fe0ce80ea68ba3f8f5e41ae3 (diff)
downloadostree-978cffed70640cca66cb1623dea68b179288b453.tar.gz
lib/deploy: Don't include version twice in bootmenu title
In Silverblue right now, the boot menu title looks like this: Fedora 29.20190301.0 (Workstation Edition) 29.20190301.0 (ostree) This is because RPM-OSTree's `mutate-os-release` feature is enabled, which injects the OSTree version string directly into `VERSION` and `PRETTY_NAME`. So appending the version string again is a bit redundant. Let's just do a simple substring check here before adding the version to the title. Closes: #1829 Approved by: cgwalters
Diffstat (limited to 'tests/libtest.sh')
-rwxr-xr-xtests/libtest.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/libtest.sh b/tests/libtest.sh
index a737a9bb..e0022512 100755
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -473,6 +473,7 @@ os_repository_new_commit ()
boot_checksum_iteration=${1:-0}
content_iteration=${2:-0}
branch=${3:-testos/buildmaster/x86_64-runtime}
+ export version=${4:-$(date "+%Y%m%d.${content_iteration}")}
echo "BOOT ITERATION: $boot_checksum_iteration"
cd ${test_tmpdir}/osdata
kver=3.6.0
@@ -507,8 +508,6 @@ os_repository_new_commit ()
echo "content iteration ${content_iteration}" > usr/bin/content-iteration
- export version=$(date "+%Y%m%d.${content_iteration}")
-
${CMD_PREFIX} ostree --repo=${test_tmpdir}/testos-repo commit --add-metadata-string "version=${version}" -b $branch -s "Build"
cd ${test_tmpdir}
}