Getting a list of failed ports in a build
Greg Larkin
glarkin at FreeBSD.org
Wed Sep 7 13:18:09 EDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everyone,
I'm working on a script that uses Tinderbox to build a list of ports,
then resubmits the failed ones to another build with different
/etc/make.conf options. In order to do that, I need to extract the list
of failed ports from the first build.
I'd prefer to use the tc command to do this, but I haven't found a
subcommand that does what I need. Is it sufficient to simply parse the
filenames of the error log files from the first build?
I created this monster command, and it works (slowly), but my guess is
there's a more elegant way to do this:
./tc getPortsForBuild -b <build name> | xargs -n1 -I % -t sh -c "./tc
getPortLastBuiltStatus -b <build name> -d %" | & grep -B 1 ^FAIL | grep
^sh | awk '{ print $8 }'
Thank you,
Greg
- --
Greg Larkin
http://www.FreeBSD.org/ - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/cpucycle/ - Follow you, follow me
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk5np1EACgkQ0sRouByUApC5HACgmpQnEVo9vnvHujXWroCUqXx/
GXAAoIfjZOe9KX8TJiJXwDwHYUs8iJtV
=PMRu
-----END PGP SIGNATURE-----
More information about the tinderbox-list
mailing list