Creating test jobs from bash output (circleci tests)


#1

Hi,

I’m trying to save writing about 100 lines of duplicated yaml with a single line changed in each.

the command needs to just run kitchen test X, X being the one of the suite names in here:
(Output from the kitchen.ci tool kitchen list)

Instance              Driver  Provisioner  Verifier  Transport  Last Action    Last Error
client-amazonlinux    Dokken  Dokken       Inspec    Dokken     Converged      <None>
client-debian-7       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-debian-8       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-debian-9       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-centos-6       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-centos-7       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-fedora-26      Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-fedora-27      Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-ubuntu-1404    Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-ubuntu-1604    Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
client-opensuse-leap  Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-amazonlinux    Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-debian-7       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-debian-8       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-debian-9       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-centos-6       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-centos-7       Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-fedora-26      Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-fedora-27      Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-ubuntu-1404    Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-ubuntu-1604    Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>
server-opensuse-leap  Dokken  Dokken       Inspec    Dokken     <Not Created>  <None>

If test circleci test tool is only supposed to look at files and figure those out, is there a way to make this config less repetitive? (yaml merge doesn’t really help in this case)

Thanks!
Dan


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.