<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10489</bug_id>
          
          <creation_ts>2016-10-24 16:16:30 +0000</creation_ts>
          <short_desc>&quot;test_1_logrotate_setup&quot; fails on second run of test image due existing files</short_desc>
          <delta_ts>2017-01-17 13:59:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Jose Perez C">jose.perez.carranza</assigned_to>
          
          
          <qa_contact name="Juan Ramos">juan.fernandox.ramos.frayle</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67482</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-10-24 16:16:30 +0000</bug_when>
    <thetext>A cleanup is needed on logrotate, on second execution is failing:

1.- Add below info to conf/local.conf

INHERIT += &quot;testimage&quot;
TEST_TARGET = &quot;simpleremote&quot;
TEST_SERVER_IP = &quot;HOST ip&quot; --&gt; IP of the machine being used to launch tests
TEST_TARGET_IP = &quot;DUT ip&quot;  --&gt; IP of the device under test
TEST_SUITES = &quot;logrotate&quot;

2.- run `bitbake core-image-sato-sdk -c testimage`
3.- run again `bitbake core-image-sato-sdk -c testimage`

Expected Results:
   All test cases should be PASS

Actual Result:

======================================================================
FAIL: test_1_logrotate_setup (oeqa.runtime.logrotate.LogrotateTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/pokylsbx86-x64/meta/lib/oeqa/utils/decorators.py&quot;, line 97, in wrapped_f
    return f(*args, **kwargs)
  File &quot;/home/pokylsbx86-x64/meta/lib/oeqa/runtime/logrotate.py&quot;, line 18, in test_1_logrotate_setup
    self.assertEqual(status, 0, msg = &quot;Could not create logrotate_dir. Output: %s&quot; % output)
AssertionError: 1 != 0 : Could not create logrotate_dir. Output: mkdir: cannot create directory &apos;/home/root/logrotate_dir&apos;: File exists

----------------------------------------------------------------------

===================== STEPS ===================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69594</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-01-06 20:38:02 +0000</bug_when>
    <thetext>Patch sent to the list 

http://lists.openembedded.org/pipermail/openembedded-core/2017-January/130845.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69855</commentid>
    <comment_count>2</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-01-17 13:59:16 +0000</bug_when>
    <thetext>this was already merged on master 

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=970b76a728509854ee5048f4e2ee8cdab827f25f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>