Skip to content

Commit 53286eb

Browse files
authored
Merge branch 'k8snetworkplumbingwg:master' into master
2 parents d29a9bc + d62b546 commit 53286eb

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

bindata/scripts/kargs.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ declare -a kargs=( "$@" )
77
ret=0
88
args=$(chroot /host/ cat /proc/cmdline)
99

10+
IS_OS_UBUNTU=true; [[ "$(chroot /host/ grep -i ubuntu /etc/os-release -c)" == "0" ]] && IS_OS_UBUNTU=false
11+
12+
# Kernel args configuration isn't supported for Ubuntu now, so we shouldn't do anything here
13+
if ${IS_OS_UBUNTU} ; then
14+
echo $ret
15+
exit 0
16+
fi
17+
1018
if chroot /host/ test -f /run/ostree-booted ; then
1119
for t in "${kargs[@]}";do
1220
if [[ $command == "add" ]];then

hack/run-e2e-conformance-virtual-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -xeo pipefail
33

4-
cluster_version=${CLUSTER_VERSION:-1.29.3}
4+
cluster_version=${CLUSTER_VERSION:-1.32.0}
55
cluster_name=${CLUSTER_NAME:-virtual}
66
domain_name=$cluster_name.lab
77

test/scripts/kargs_test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SUT_SCRIPT="${SCRIPTPATH}/../../bindata/scripts/kargs.sh"
66

77

88
test_RpmOstree_Add_All_Arguments() {
9+
echo "ID=\"rhel\"" > ${FAKE_HOST}/etc/os-release
910
echo "a b c=d eee=fff" > ${FAKE_HOST}/proc/cmdline
1011
touch ${FAKE_HOST}/run/ostree-booted
1112

@@ -19,6 +20,7 @@ test_RpmOstree_Add_All_Arguments() {
1920

2021

2122
test_RpmOstree_Add_Only_Missing_Arguments() {
23+
echo "ID=\"rhel\"" > ${FAKE_HOST}/etc/os-release
2224
echo "a b c=d eee=fff K=L" > ${FAKE_HOST}/proc/cmdline
2325
touch ${FAKE_HOST}/run/ostree-booted
2426

@@ -31,6 +33,7 @@ test_RpmOstree_Add_Only_Missing_Arguments() {
3133
}
3234

3335
test_RpmOstree_Delete_All_Arguments() {
36+
echo "ID=\"rhel\"" > ${FAKE_HOST}/etc/os-release
3437
echo "a b c=d eee=fff X=Y W=Z" > ${FAKE_HOST}/proc/cmdline
3538
touch ${FAKE_HOST}/run/ostree-booted
3639

@@ -43,6 +46,7 @@ test_RpmOstree_Delete_All_Arguments() {
4346
}
4447

4548
test_RpmOstree_Delete_Only_Exist_Arguments() {
49+
echo "ID=\"rhel\"" > ${FAKE_HOST}/etc/os-release
4650
echo "a b c=d eee=fff X=Y" > ${FAKE_HOST}/proc/cmdline
4751
touch ${FAKE_HOST}/run/ostree-booted
4852

0 commit comments

Comments
 (0)