#27 roles: Clear the remote_artifacts directory before use
Merged 6 years ago by merlinm. Opened 6 years ago by stefw.
stefw/standard-test-roles clear-artifacts  into  master

@@ -84,6 +84,9 @@ 

      -e 's|/usr/share/rhts-library/rhtslib.sh|/usr/local/bin/beakerlib.sh|g'

      -e 's|/usr/bin/rstrnt-|/usr/local/bin/rstrnt-|g'

  

+ - name: Clear artifacts directory

+   file: path={{ remote_artifacts }} state=absent

+ 

  - name: Make artifacts directory

    file: path={{ remote_artifacts }} state=directory owner=root mode=755 recurse=yes

  

@@ -139,6 +139,9 @@ 

      cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys

      chmod 644 /root/.ssh/authorized_keys

  

+ - name: Clear artifacts directory

+   file: path={{ remote_artifacts }} state=absent

+ 

  - name: Make artifacts directory

    file: path={{ remote_artifacts }} state=directory owner=root mode=755 recurse=yes

  

One problem I keep running into is that remote_artifacts directory
exists and has files with failures in it. This results in false
positives even after I've fixed the problem.

I noticed this problem before, but didn't think much of it.

I finally had a chance to check this out, and it works as expected.

Pull-Request has been merged by merlinm

6 years ago