Skip to content

Commit

Permalink
network: el9 tests - use make to build nmstate
Browse files Browse the repository at this point in the history
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
  • Loading branch information
erav committed Feb 16, 2023
1 parent 9431f54 commit 7457386
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/network/functional/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ function replace_resolvconf {
}

function install_nmstate_from_source {
BUILD_NMSTATE = "make rpm"
if grep -q "8" <<< $IMAGE_TAG ; then
BUILD_NMSTATE = "pip3 install --no-deps -U ."
fi
container_exec "
mkdir $NMSTATE_TMP \
&& \
cp -rf $NMSTATE_WORKSPACE $NMSTATE_TMP/ \
&& \
cd $NMSTATE_TMP/nmstate \
&& \
pip3 install --no-deps -U . \
$BUILD_NMSTATE \
&& \
cd -
"
Expand Down

0 comments on commit 7457386

Please sign in to comment.