sstephenson / bats

Bash Automated Testing System
MIT License
7.12k stars 518 forks source link

Can't run tests anymore #221

Open benmarten opened 7 years ago

benmarten commented 7 years ago

Something broke on my machine, so running my tests leads to:

/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test: line 327: /var/folders/rs/s_q1py2d54q4g9bk1h7vg95r0000gn/T/bats.30926.src: No such file or directory

Any idea whats wrong?

dimo414 commented 7 years ago

Are you still encountering this issue? What makes you think it's an issue with Bats? Seems like something else changed on your system.

lucasvc commented 6 years ago

I've found this too. On a helper script sourced from tests files I had:

export FALSE=1

After changing it to a more elegant way:

export FALSE=$(false;echo $?)

All my tests fails with a similar line as the author. FTR, using a similar expression for true:

export TRUE=$(true;echo $?)

Does not break tests.