diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2018-04-16 23:08:16 -0400 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-05-01 18:14:27 -0700 |
commit | bfc66e11b8c83da43bdefdc82b21afd250502ad1 (patch) | |
tree | f0f0ac5dd77e0bdd3cf46be58a6ead64c0e9c7ca /meta-oe/recipes-support/libteam/libteam | |
parent | ebfc68a64eca606033ff888f2e06842dd4e2d6d4 (diff) | |
download | meta-openembedded-contrib-bfc66e11b8c83da43bdefdc82b21afd250502ad1.tar.gz |
libteam: add ptest
The scripts/team_basic_test.py will be called as testcase.
RedHat specific tests have been disabled since they are incampatible
with OE.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libteam/libteam')
-rw-r--r-- | meta-oe/recipes-support/libteam/libteam/0001-team_basic_test.py-disable-RedHat-specific-test.patch | 32 | ||||
-rw-r--r-- | meta-oe/recipes-support/libteam/libteam/run-ptest | 3 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libteam/libteam/0001-team_basic_test.py-disable-RedHat-specific-test.patch b/meta-oe/recipes-support/libteam/libteam/0001-team_basic_test.py-disable-RedHat-specific-test.patch new file mode 100644 index 0000000000..468a55f346 --- /dev/null +++ b/meta-oe/recipes-support/libteam/libteam/0001-team_basic_test.py-disable-RedHat-specific-test.patch @@ -0,0 +1,32 @@ +From 00debe6bd4cf5a3133a8fbaab75f7447a39fa655 Mon Sep 17 00:00:00 2001 +From: Wenzong Fan <wenzong.fan@windriver.com> +Date: Thu, 12 Apr 2018 01:54:15 +0000 +Subject: [PATCH] team_basic_test.py: disable RedHat specific test + +The test _run_teamd_initscripts() is for RedHat ifcfg scripts which are +incompatible with OE: + /etc/sysconfig/network-scripts/ifcfg-* + +Upstream-Status: Inappropriate [OE Specific] + +Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> +--- + scripts/team_basic_test.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/team_basic_test.py b/scripts/team_basic_test.py +index b05be9e..faabd18 100755 +--- a/scripts/team_basic_test.py ++++ b/scripts/team_basic_test.py +@@ -171,7 +171,7 @@ TEAM_PORT_CONFIG='{"prio": 10}' + try: + for mode_name in self._team_modes: + self._run_one_mode(mode_name) +- self._run_teamd_initscripts() ++ #self._run_teamd_initscripts() + finally: + cmd_exec("modprobe -r team_mode_loadbalance team_mode_roundrobin team_mode_activebackup team_mode_broadcast team"); + +-- +2.13.3 + diff --git a/meta-oe/recipes-support/libteam/libteam/run-ptest b/meta-oe/recipes-support/libteam/libteam/run-ptest new file mode 100644 index 0000000000..4ba5acf051 --- /dev/null +++ b/meta-oe/recipes-support/libteam/libteam/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +python $(dirname $0)/team_basic_test.py |