Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Conversation

@blueyed
Copy link

@blueyed blueyed commented Mar 13, 2014

While looking at the source, I've seen this and imagined what might
happen if some test causes unsetting of $TMP, or if the setup method
would not be called for some reason.

As a sidenote, I've wondered why BATS_TMPDIR is not used here.

While looking at the source, I've seen this and imagined what might
happen if some test causes unsetting of $TMP, or if the setup method
would not be called for some reason.

As a sidenote, I've wondered why BATS_TMPDIR is not used here.
@sstephenson
Copy link
Owner

I don't think there's any need to print a warning message and exit. It ought to be enough to condition rm based on whether or not $TMP is a directory.

Remember, this is just the test helper used by Bats' test suite.

@blueyed
Copy link
Author

blueyed commented Mar 13, 2014

Sure, feel free to adopt it as needed.

sstephenson added a commit that referenced this pull request Jun 2, 2014
@sstephenson sstephenson closed this Jun 2, 2014
yarikoptic pushed a commit to neurodebian/bats that referenced this pull request Aug 6, 2019
yarikoptic added a commit to neurodebian/bats that referenced this pull request Aug 6, 2019
Bats 1.1.0 - 2018-07-08

This is the first release with new features relative to the original Bats 0.4.0.

Added:
* The `-r, --recursive` flag to scan directory arguments recursively for
  `*.bats` files (sstephenson#109)
* The `contrib/rpm/bats.spec` file to build RPMs (sstephenson#111)

Changed:
* Travis exercises latest versions of Bash from 3.2 through 4.4 (sstephenson#116, sstephenson#117)
* Error output highlights invalid command line options (sstephenson#45, sstephenson#46, sstephenson#118)
* Replaced `echo` with `printf` (sstephenson#120)

Fixed:
* Fixed `BATS_ERROR_STATUS` getting lost when `bats_error_trap` fired multiple
  times under Bash 4.2.x (sstephenson#110)
* Updated `bin/bats` symlink resolution, handling the case on CentOS where
  `/bin` is a symlink to `/usr/bin` (sstephenson#113, sstephenson#115)

* tag 'v1.1.0': (198 commits)
  Bats 1.1.0
  bats: Replace echo with printf
  Extract `abort()` function
  travis: Remove `bats -c` wrapper
  travis: Enable build with default Linux image Bash
  Add Bash version test to Travis job.
  Revert "Re-add Bash version check to Docker image build"
  Re-add Bash version check to Docker image build
  Move timing test to Docker run for Linux jobs
  Remove version check from Docker image build
  Bash version via build matrix instead of script loop
  Fix merge error.
  Add return code storage for Bash version loop
  Add Bash version output during 'docker build'
  Clean up Docker image tags
  Add default value for Bash version
  Cover more Bash versions with Docker
  BATS_ROOT: Elide options to reset shell options
  BATS_ROOT: Restore comment noting issue sstephenson#113
  BATS_ROOT: Use `set -P`, remove `PWD` resolution
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants