mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
6905274d2f
The original fix for team_basic_test.py only change the interpreter to python3, but still some error as below: # ./run-ptest File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 35 print "Usage: team_basic_test.py [OPTION...]" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? # ./run-ptest RUN #1 # "ip link add testteamx type team" # "teamnl testteamx getoption mode" # "ip link del testteamx" # "modprobe -r team_mode_loadbalance team_mode_roundrobin team_mode_activebackup team_mode_broadcast team" Traceback (most recent call last): File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 206, in <module> main() File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 203, in main btest.run() File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 180, in run self._run_one_loop(i + 1) File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 173, in _run_one_loop self._run_one_mode(mode_name) File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 101, in _run_one_mode cmd_exec("teamnl %s getoption mode" % team_name, "*NOMODE*") File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 80, in cmd_exec raise CmdExecUnexpectedOutputException(output, expected_output) __main__.CmdExecUnexpectedOutputException: Command execution output unexpected: "b'*NOMODE*'" != "*NOMODE*" So rework team_basic_test.py to fix the above issue. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
41 lines
1.2 KiB
BlitzBasic
41 lines
1.2 KiB
BlitzBasic
SUMMARY = "Library for controlling team network device"
|
|
HOMEPAGE = "http://www.libteam.org/"
|
|
SECTION = "libs/network"
|
|
|
|
LICENSE = "LGPLv2.1"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
|
|
|
DEPENDS = "libnl libdaemon jansson"
|
|
|
|
SRC_URI = "git://github.com/jpirko/libteam;branch=master;protocol=https \
|
|
file://0001-include-sys-select.h-for-fd_set-definition.patch \
|
|
file://0002-teamd-Re-adjust-include-header-order.patch \
|
|
file://0001-team_basic_test.py-disable-RedHat-specific-test.patch \
|
|
file://0001-team_basic_test.py-switch-to-python3.patch \
|
|
file://run-ptest \
|
|
"
|
|
SRCREV = "3ee12c6d569977cf1cd30d0da77807a07aa77158"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit autotools pkgconfig ptest
|
|
|
|
FILES_${PN} = "${libdir}/libteam${SOLIBS} \
|
|
"
|
|
|
|
PACKAGES += "${PN}-dctl ${PN}-utils"
|
|
FILES_${PN}-dctl = "${libdir}/libteamdctl${SOLIBS} \
|
|
"
|
|
FILES_${PN}-utils = "${bindir}/bond2team \
|
|
${bindir}/teamd \
|
|
${bindir}/teamdctl \
|
|
${bindir}/teamnl \
|
|
"
|
|
|
|
RDEPENDS_${PN}-utils = "bash"
|
|
RDEPENDS_${PN}-ptest = "python3-core"
|
|
|
|
do_install_ptest() {
|
|
install ${S}/scripts/team_basic_test.py ${D}${PTEST_PATH}/
|
|
}
|