Improve gbs coverage ratio-Sep 09/280809/5
authorbiao716.wang <biao716.wang@samsung.com>
Mon, 5 Sep 2022 09:19:38 +0000 (18:19 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Tue, 6 Sep 2022 01:29:21 +0000 (10:29 +0900)
score:4.52Y
Change-Id: I1941ada987064ca26d5ef8b41b3651fb3356aabc
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
gitbuildsys/cmd_export.py
gitbuildsys/conf.py
tests/test_export.py

index eea01f0010693a24358047c190d96a0745fc05c3..898d91e143e48c4d8f53015df3804921302eded7 100644 (file)
@@ -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)
index a0fd40ae7ac949bfc2c40696698d4a9db4e69f6b..34941d3aa331eb4a2b266630293d0c9599c7133a 100644 (file)
@@ -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 =
index fac0d8da6ed5317580afe99949cf7cb29b7a33a5..4e53231b81acca4ab11e521aff30048f5793fbcf 100644 (file)
@@ -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: