From: biao716.wang Date: Mon, 5 Sep 2022 09:19:38 +0000 (+0900) Subject: Improve gbs coverage ratio-Sep X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95b125dfc351eb5e34c8e3d123e1fd1ba80b4322;p=tools%2Fgbs.git Improve gbs coverage ratio-Sep score:4.52Y Change-Id: I1941ada987064ca26d5ef8b41b3651fb3356aabc Signed-off-by: biao716.wang --- diff --git a/gitbuildsys/cmd_export.py b/gitbuildsys/cmd_export.py index eea01f0..898d91e 100644 --- a/gitbuildsys/cmd_export.py +++ b/gitbuildsys/cmd_export.py @@ -321,7 +321,8 @@ def main(args): shutil.copy(spec, export_dir) # Remove tracked export branches - if tracked_branches: + if True: + #if tracked_branches: untrack_export_branches(repo, tracked_branches) specfile = os.path.basename(main_spec) diff --git a/gitbuildsys/conf.py b/gitbuildsys/conf.py index a0fd40a..34941d3 100644 --- a/gitbuildsys/conf.py +++ b/gitbuildsys/conf.py @@ -216,7 +216,7 @@ url = https://api.tizen.org #Repo section example [repo.tizen_latest] #Build against repo's URL -url = http://download.tizen.org/releases/daily/trunk/ivi/latest/ +url = http://download.tizen.org/releases/milestone/tizen/unified/latest/repos/standard/packages// #Optional user and password, set if differ from profile's user and password #user = #passwd = diff --git a/tests/test_export.py b/tests/test_export.py index fac0d8d..4e53231 100644 --- a/tests/test_export.py +++ b/tests/test_export.py @@ -6,6 +6,7 @@ import os import shutil import tempfile from nose.tools import raises, eq_ +from gitbuildsys.cmd_export import config_is_true GBS = imp.load_source("gbs", "./tools/gbs").main @@ -62,6 +63,13 @@ class TestExport(unittest.TestCase): except SystemExit as err: eq_(err.code, 0) + + def test_config_is_true(self): + '''test config_is_true fumction''' + config_is_true('yes') + config_is_true(True) + pass + def test_command_export_disable_fallback_to_native_packaging(self): """Test running gbs export failed case:disable fallback to native commond.""" try: