Skip to content

Commit 41d9945

Browse files
authored
Merge pull request #207 from dceara/pin-ovn-fake-multinode
do.sh: Pin ovn-fake-multinode to v0.5.
2 parents 53250d7 + 2b5fa66 commit 41d9945

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ cd ~/ovn-heater
155155
```
156156

157157
This step will:
158-
- clone OVS, OVN and ovn-fake-multinode upstream main branches in the
158+
- clone OVS and OVN main branches in the `runtime` directory.
159+
- clone ovn-fake-multinode upstream latest stable tag (`v0.5`) in the
159160
`runtime` directory.
160161
- build the `ovn/ovn-multi-node` container image which will be used by the
161162
fake nodes spawned during the tests. OVS/OVN binaries are built with

do.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ ovn_branch="${OVN_BRANCH:-main}"
119119

120120
# ovn-fake-multinode env vars
121121
ovn_fmn_repo="${OVN_FAKE_MULTINODE_REPO:-https://github.com/ovn-org/ovn-fake-multinode.git}"
122-
ovn_fmn_branch="${OVN_FAKE_MULTINODE_BRANCH:-main}"
122+
ovn_fmn_branch="${OVN_FAKE_MULTINODE_BRANCH:-v0.5}"
123123

124124
OS_BASE="${OS_BASE:-fedora}"
125125
OS_IMAGE_OVERRIDE="${OS_IMAGE_OVERRIDE}"
@@ -295,8 +295,9 @@ function record_test_config() {
295295
pushd ${rundir}/$d
296296
local origin=$(git config --get remote.origin.url)
297297
local sha=$(git rev-parse HEAD)
298-
local sha_name=$(git rev-parse --abbrev-ref HEAD)
299-
echo "$d (${origin}): ${sha} (${sha_name})" >> ${out_file}
298+
local name=$(git describe --tags --exact-match HEAD 2> /dev/null || \
299+
git rev-parse --abbrev-ref HEAD)
300+
echo "$d (${origin}): ${sha} (${name})" >> ${out_file}
300301
popd
301302
done
302303
}

0 commit comments

Comments
 (0)