tests: fix problems in 'log with formula' test (#350)
tests: fix problems in 'log with formula' test (#350)

Problems fixed:

- Broken and leaking test if run as part of `brew tests --coverage` due
  to the `cmd` call being nested in the `Pathname#cd` block.
- Output during `git clone` operation because of a missing `shutup do`.
- Still incomplete coverage for `cmd/log.rb` because `brew log` is
  invoked on the formula in the origin instead of the shallow clone.
- Minor stylistic fixes:
  - Superfluous parentheses around `core_tap.path.dirname`.
  - Overly long lines.
claui/brew,MikeMcQuaid/brew,jmsundar/brew,gordonmcshane/homebrew,vitorgalvao/brew,reelsense/brew,EricFromCanada/brew,DomT4/brew,toonetown/homebrew,claui/brew,EricFromCanada/brew,hanxue/linuxbrew,hanxue/linuxbrew,amar-laksh/brew_sudo,Homebrew/brew,toonetown/homebrew,palxex/brew,bfontaine/brew,rwhogg/brew,tonyg/homebrew,Linuxbrew/brew,muellermartin/dist,tonyg/homebrew,reitermarkus/brew,AnastasiaSulyagina/brew,sjackman/homebrew,muellermartin/dist,MikeMcQuaid/brew,mgrimes/brew,alyssais/brew,mahori/brew,aw1621107/brew,JCount/brew,pseudocody/brew,Homebrew/brew,gregory-nisbet/brew,sjackman/homebrew,jmsundar/brew,vitorgalvao/brew,nandub/brew,palxex/brew,aw1621107/brew,reitermarkus/brew,pseudocody/brew,reitermarkus/brew,JCount/brew,reelsense/brew,bfontaine/brew,alyssais/brew,sjackman/homebrew,Linuxbrew/brew,rwhogg/brew,Homebrew/brew,bfontaine/brew,EricFromCanada/brew,maxim-belkin/brew,mahori/brew,zmwangx/brew,AnastasiaSulyagina/brew,JCount/brew,nandub/brew,JCount/brew,konqui/brew,zmwangx/brew,nandub/brew,sjackman/homebrew,claui/brew,Linuxbrew/brew,konqui/brew,DomT4/brew,gregory-nisbet/brew,gordonmcshane/homebrew,alyssais/brew,tonyg/homebrew,palxex/brew,muellermartin/dist,ilovezfs/brew,rwhogg/brew,pseudocody/brew,vitorgalvao/brew,mgrimes/brew,konqui/brew,mgrimes/brew,AnastasiaSulyagina/brew,mahori/brew,MikeMcQuaid/brew,MikeMcQuaid/brew,zmwangx/brew,Homebrew/brew,claui/brew,gordonmcshane/homebrew,DomT4/brew,DomT4/brew,ilovezfs/brew,maxim-belkin/brew,amar-laksh/brew_sudo,gregory-nisbet/brew,EricFromCanada/brew,vitorgalvao/brew,reelsense/brew,mahori/brew,hanxue/linuxbrew,jmsundar/brew,maxim-belkin/brew,toonetown/homebrew,konqui/brew,Linuxbrew/brew,ilovezfs/brew,amar-laksh/brew_sudo,nandub/brew,reitermarkus/brew,aw1621107/brew