Fixes up bash stack walking on Mac OS. There are cases where BASH_SOURCE is a sparse array with holes. This appears to be due to the sub shell launching of the tests. By using FUNCNAME as our count of stack frames, and "ignoring" the holes, we get much better stack output on the Mac. Previously we were just erroring out.
Fixes up bash stack walking on Mac OS. There are cases where BASH_SOURCE is a sparse array with holes. This appears to be due to the sub shell launching of the tests. By using FUNCNAME as our count of stack frames, and "ignoring" the holes, we get much better stack output on the Mac. Previously we were just erroring out.

RELNOTES:none

--
MOS_MIGRATED_REVID=107255705

UrbanCompass/bazel,cushon/bazel,dslomov/bazel-windows,abergmeier-dsfishlabs/bazel,ulfjack/bazel,dslomov/bazel,LuminateWireless/bazel,hhclam/bazel,kchodorow/bazel,dslomov/bazel-windows,werkt/bazel,zhexuany/bazel,dinowernli/bazel,mikelalcon/bazel,twitter-forks/bazel,safarmer/bazel,juhalindfors/bazel-patches,aehlig/bazel,davidzchen/bazel,mikelikespie/bazel,dslomov/bazel-windows,variac/bazel,dropbox/bazel,dslomov/bazel-windows,mikelikespie/bazel,Digas29/bazel,damienmg/bazel,damienmg/bazel,dinowernli/bazel,Asana/bazel,kamalmarhubi/bazel,perezd/bazel,dropbox/bazel,ButterflyNetwork/bazel,LuminateWireless/bazel,anupcshan/bazel,UrbanCompass/bazel,kchodorow/bazel,aehlig/bazel,dropbox/bazel,juhalindfors/bazel-patches,bazelbuild/bazel,mikelikespie/bazel,ButterflyNetwork/bazel,variac/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,safarmer/bazel,zhexuany/bazel,perezd/bazel,rohitsaboo/bazel,katre/bazel,kchodorow/bazel-1,juhalindfors/bazel-patches,hermione521/bazel,whuwxl/bazel,bazelbuild/bazel,akira-baruah/bazel,cushon/bazel,kchodorow/bazel-1,abergmeier-dsfishlabs/bazel,bazelbuild/bazel,variac/bazel,abergmeier-dsfishlabs/bazel,perezd/bazel,rohitsaboo/bazel,dinowernli/bazel,zhexuany/bazel,damienmg/bazel,mikelalcon/bazel,mrdomino/bazel,akira-baruah/bazel,mrdomino/bazel,dslomov/bazel,Asana/bazel,mikelalcon/bazel,whuwxl/bazel,snnn/bazel,akira-baruah/bazel,Digas29/bazel,aehlig/bazel,zhexuany/bazel,mrdomino/bazel,aehlig/bazel,snnn/bazel,safarmer/bazel,werkt/bazel,werkt/bazel,kchodorow/bazel,dinowernli/bazel,snnn/bazel,hhclam/bazel,aehlig/bazel,kchodorow/bazel-1,iamthearm/bazel,Digas29/bazel,dslomov/bazel,spxtr/bazel,variac/bazel,snnn/bazel,werkt/bazel,anupcshan/bazel,Asana/bazel,davidzchen/bazel,davidzchen/bazel,katre/bazel,UrbanCompass/bazel,spxtr/bazel,spxtr/bazel,juhalindfors/bazel-patches,akira-baruah/bazel,hhclam/bazel,whuwxl/bazel,dslomov/bazel,mbrukman/bazel,ButterflyNetwork/bazel,davidzchen/bazel,UrbanCompass/bazel,hermione521/bazel,anupcshan/bazel,perezd/bazel,perezd/bazel,kamalmarhubi/bazel,dslomov/bazel-windows,snnn/bazel,mikelalcon/bazel,dslomov/bazel,perezd/bazel,cushon/bazel,dslomov/bazel,rohitsaboo/bazel,kchodorow/bazel,anupcshan/bazel,kchodorow/bazel-1,hhclam/bazel,mikelalcon/bazel,spxtr/bazel,meteorcloudy/bazel,UrbanCompass/bazel,variac/bazel,katre/bazel,meteorcloudy/bazel,rohitsaboo/bazel,Asana/bazel,damienmg/bazel,juhalindfors/bazel-patches,kchodorow/bazel-1,dinowernli/bazel,zhexuany/bazel,dropbox/bazel,ulfjack/bazel,mbrukman/bazel,mrdomino/bazel,twitter-forks/bazel,twitter-forks/bazel,damienmg/bazel,hermione521/bazel,UrbanCompass/bazel,whuwxl/bazel,mbrukman/bazel,Digas29/bazel,dinowernli/bazel,katre/bazel,LuminateWireless/bazel,zhexuany/bazel,Asana/bazel,kchodorow/bazel,dropbox/bazel,davidzchen/bazel,safarmer/bazel,whuwxl/bazel,davidzchen/bazel,LuminateWireless/bazel,hhclam/bazel,ulfjack/bazel,LuminateWireless/bazel,Asana/bazel,aehlig/bazel,abergmeier-dsfishlabs/bazel,twitter-forks/bazel,spxtr/bazel,snnn/bazel,kchodorow/bazel,abergmeier-dsfishlabs/bazel,Digas29/bazel,whuwxl/bazel,variac/bazel,rohitsaboo/bazel,iamthearm/bazel,mbrukman/bazel,ButterflyNetwork/bazel,spxtr/bazel,damienmg/bazel,anupcshan/bazel,hhclam/bazel,juhalindfors/bazel-patches,hermione521/bazel,mrdomino/bazel,mbrukman/bazel,juhalindfors/bazel-patches,cushon/bazel,ButterflyNetwork/bazel,aehlig/bazel,mrdomino/bazel,damienmg/bazel,twitter-forks/bazel,bazelbuild/bazel,iamthearm/bazel,kamalmarhubi/bazel,perezd/bazel,iamthearm/bazel,mikelikespie/bazel,variac/bazel,Digas29/bazel,meteorcloudy/bazel,mikelalcon/bazel,davidzchen/bazel,katre/bazel,ulfjack/bazel,anupcshan/bazel,hermione521/bazel,ulfjack/bazel,meteorcloudy/bazel,rohitsaboo/bazel,spxtr/bazel,werkt/bazel,ulfjack/bazel,twitter-forks/bazel,meteorcloudy/bazel,kamalmarhubi/bazel,mikelikespie/bazel,bazelbuild/bazel,kchodorow/bazel-1,mikelikespie/bazel,twitter-forks/bazel,akira-baruah/bazel,abergmeier-dsfishlabs/bazel,iamthearm/bazel,LuminateWireless/bazel,ulfjack/bazel,Asana/bazel,katre/bazel,safarmer/bazel,kamalmarhubi/bazel,kchodorow/bazel,kamalmarhubi/bazel,meteorcloudy/bazel,iamthearm/bazel,mbrukman/bazel,bazelbuild/bazel,snnn/bazel,cushon/bazel,hermione521/bazel,safarmer/bazel,dslomov/bazel,cushon/bazel,akira-baruah/bazel,dslomov/bazel-windows,dropbox/bazel,werkt/bazel