@@ -24,15 +24,34 @@ coreos.pod([image: 'registry.fedoraproject.org/fedora:30', privileged: true, kvm
2424 cosa_cmd("init https://github.com/coreos/fedora-coreos-config")
2525 cosa_cmd("fetch")
2626 cosa_cmd("build")
27- cosa_cmd("kola run")
27+ // cosa_cmd("kola run")
2828 // sanity check kola actually ran and dumped its output in tmp/
29- coreos.shwrap("test -d /srv/tmp/kola")
30- cosa_cmd("buildextend-metal")
31- cosa_cmd("buildextend-installer")
32- cosa_cmd("buildextend-openstack")
33- cosa_cmd("buildextend-vmware")
34- cosa_cmd("compress")
35- cosa_cmd("buildupload --dry-run s3 --acl=public-read my-nonexistent-bucket/my/prefix")
29+ //coreos.shwrap("test -d /srv/tmp/kola")
30+ // cosa_cmd("buildextend-metal")
31+ // cosa_cmd("buildextend-installer")
32+ // cosa_cmd("buildextend-openstack")
33+ // cosa_cmd("buildextend-vmware")
34+ // cosa_cmd("compress")
35+ // cosa_cmd("buildupload --dry-run s3 --acl=public-read my-nonexistent-bucket/my/prefix")
36+
37+ // test pruning
38+ coreos.shwrap("cat /srv/builds/builds.json")
39+ cosa_cmd("build ostree --force-image")
40+ cosa_cmd("build ostree --force-image")
41+ cosa_cmd("build ostree --force-image")
42+ coreos.shwrap("cat /srv/builds/builds.json")
43+ cosa_cmd("build ostree --force-image --skip-prune")
44+ coreos.shwrap("cat /srv/builds/builds.json")
45+ cosa_cmd("build ostree --force-image")
46+ cosa_cmd("build ostree --force-image")
47+ coreos.shwrap("cat /srv/builds/builds.json")
48+ cosa_cmd("prune --workdir /srv --dry-run")
49+ coreos.shwrap("cat /srv/builds/builds.json")
50+ cosa_cmd("prune --workdir /srv --dry-run --keep-last-n=1")
51+ coreos.shwrap("cat /srv/builds/builds.json")
52+ cosa_cmd("prune --workdir /srv --dry-run --keep-last-n=0")
53+ cosa_cmd("prune --workdir /srv --dry-run --keep-last-days=5")
54+ coreos.shwrap("cat /srv/builds/builds.json")
3655 }
3756 }
3857}
0 commit comments