tests/installed: Add NOTE when re-using RPMs
authorJonathan Lebon <jonathan@jlebon.com>
Wed, 4 Jul 2018 15:59:18 +0000 (11:59 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 4 Jul 2018 16:06:38 +0000 (16:06 +0000)
One gotcha here is that we don't invalidate the RPMs if we're not
sitting on the same commit anymore. Shouldn't be too hard to fix, though
let's at least make a note of it for now.

Closes: #1668
Approved by: cgwalters

tests/installed/playbook-run.sh

index 37572bd42144bd7b902f68fdb0acd7adc45cbd82..af906c3d75684bbecd60552a0619248e789a19fa 100755 (executable)
@@ -7,6 +7,10 @@ dn=$(cd $(dirname $0) && pwd)
 if ! test -d build; then
     mkdir -p build
     (cd build && ${dn}/../../ci/build-rpm.sh)
+else
+    # XXX: we should invalidate based on `git describe` or something
+    echo "NOTE: Re-using prebuilt RPMs:"
+    find build -name '*.rpm'
 fi
 
 # https://fedoraproject.org/wiki/CI/Tests