idank / bashlex

Python parser for bash
GNU General Public License v3.0
552 stars 94 forks source link

Make tests more portable and cleaner #16

Closed josephfrazier closed 7 years ago

josephfrazier commented 7 years ago

This makes a few changes to the Makefile:

  1. Actually redirect stderr to /dev/null
  2. Run nose through python, not directly (helps with multiple python versions)
  3. Don't try to run tests if nose is missing

The commit messages have a few more details, but let me know if I should explain further. Thanks!

josephfrazier commented 7 years ago

I originally tried running python -m nose --with-doctest tests/ bashlex/, but it doesn't seem to make a difference. All the tests run even without passing the directories as arguments, so I'm guessing it just searches everywhere.

idank commented 7 years ago

Ok, I'm slightly annoyed that it's going to search everywhere but I'll take it anyway, thanks.