diff --git a/atune.spec b/atune.spec index 355d75d327228633248f1e29a380168104601e9a..b2edfd9941edc36cd16b70f87dba6abee288637d 100755 --- a/atune.spec +++ b/atune.spec @@ -3,13 +3,14 @@ Summary: AI auto tuning system Name: atune Version: 0.3 -Release: 0.4 +Release: 0.5 License: Mulan PSL v2 URL: https://gitee.com/openeuler/A-Tune Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz Patch6000: backport-atune-update-the-files-description.patch Patch6001: backport-atune-add-go-compile-flag.patch +Patch6002: backport-atune-update-test-case.patch BuildRequires: rpm-build golang-bin procps-ng BuildRequires: sqlite >= 3.24.0 openssl @@ -143,6 +144,9 @@ make models %systemd_postun_with_restart atuned.service %changelog +* Tue Dec 29 2020 gaoruoshu - 0.3-0.5 +- update test case + * Sat Dec 26 2020 zhuguodong - 0.3-0.4 - add go compile flag diff --git a/backport-atune-update-test-case.patch b/backport-atune-update-test-case.patch new file mode 100644 index 0000000000000000000000000000000000000000..5e88025833a49d03bb312739bc80887a1f55107c --- /dev/null +++ b/backport-atune-update-test-case.patch @@ -0,0 +1,32 @@ +From 30cdee5fd09feb6a7bd5afbfa16685c17ef4e369 Mon Sep 17 00:00:00 2001 +From: gaoruoshu +Date: Tue, 29 Dec 2020 09:33:53 +0800 +Subject: [PATCH] atune update test case + +--- + tests/configurator/test_kernel_config.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/configurator/test_kernel_config.py b/tests/configurator/test_kernel_config.py +index d6dfa7a..9be5485 100644 +--- a/tests/configurator/test_kernel_config.py ++++ b/tests/configurator/test_kernel_config.py +@@ -21,13 +21,13 @@ from analysis.plugin.public import NeedConfigWarning + class TestKernelConfig: + """ test kernel config""" + user = "UT" +- config_key = "CONFIG_EULEROS_DETAILED_RAS_INFO" ++ config_key = "CONFIG_KDB_KEYBOARD" + + def test_get_kernel_config_no_exist(self): + """test get kernel config with no exist""" + try: + kernel_config = KernelConfig(self.user) +- value = kernel_config.get("CONFIG_EULEROS_TEST_KERNEL_CONFIG") ++ value = kernel_config.get("CONFIG_TEST_KERNEL_CONFIG") + assert value is None + except (FileNotFoundError, LookupError): + assert True +-- +1.8.3.1 +