Getting a list of failed ports in a build

Greg Larkin glarkin at FreeBSD.org
Wed Sep 7 14:37:56 EDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 9/7/11 2:23 PM, Ion-Mihai Tetcu wrote:
> On Wed, 07 Sep 2011 13:18:09 -0400
> Greg Larkin <glarkin at freebsd.org> wrote:
> 
>> -----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 }'
> 
> Just go directly and get your results from the database.
> 
> I'm totally sure the script bellow is NOT the latest version, but after
> getting back in town today I found my internet connection not
> working, and this is the only thing I can find locally ATM.
> 
> But it should give you enough pointers. 
> 
[...]

Hi Ion-Mihai,

Excellent, thank you.  I will give that script a try and start looking
at the database if I don't find a subcommand to perform other tasks I
might need.

Regards,
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/

iEYEARECAAYFAk5nugMACgkQ0sRouByUApC9RwCffth9I8Rq9tXpvf85N+fTnsfL
jk8AmwcTfvrKtVsKt8vYIKQrF1DPJnA0
=TKmh
-----END PGP SIGNATURE-----


More information about the tinderbox-list mailing list