Skip to content

Commit 7457386

Browse files
committed
network: el9 tests - use make to build nmstate
Building nmstate from source for the tests requires using `make rpm` instead of pip install for el9 and onwards. Signed-off-by: Eitan Raviv <[email protected]> Change-Id: I46bf7fa6acf29da41ed313252aa54a64c6b24ab1
1 parent 9431f54 commit 7457386

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/network/functional/run-tests.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ function replace_resolvconf {
3535
}
3636

3737
function install_nmstate_from_source {
38+
BUILD_NMSTATE = "make rpm"
39+
if grep -q "8" <<< $IMAGE_TAG ; then
40+
BUILD_NMSTATE = "pip3 install --no-deps -U ."
41+
fi
3842
container_exec "
3943
mkdir $NMSTATE_TMP \
4044
&& \
4145
cp -rf $NMSTATE_WORKSPACE $NMSTATE_TMP/ \
4246
&& \
4347
cd $NMSTATE_TMP/nmstate \
4448
&& \
45-
pip3 install --no-deps -U . \
49+
$BUILD_NMSTATE \
4650
&& \
4751
cd -
4852
"

0 commit comments

Comments
 (0)