Guest User

Untitled

a guest
Mar 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. m() {
  2. # mocha default path is test/mocha.opts
  3. file=$(readlink -f $1)
  4. [ -f "test/mocha.opts" ] && (mocha $file)
  5. [ -f "../../mocha.opts" ] && (cd ../../../ && mocha $file)
  6. [ -f "../../../mocha.opts" ] && (cd ../../../../ && mocha $file)
  7. [ -f "../../../../mocha.opts" ] && (cd ../../../../../ && mocha $file)
  8. [ -f "../../../../../mocha.opts" ] && (cd ../../../../../../ && mocha $file)
  9. [ -f "../../../../../../mocha.opts" ] && (cd ../../../../../../../ && mocha $file)
  10. }
Add Comment
Please, Sign In to add comment