Comments (1)
@srcbucket you can use the following snippet in the mean time. It wraps all assert_file_
calls with code that makes sure the two variables in question are set.
local bats_fn bats_decl
for bats_fn in $(set | grep -e "^assert_file_*"); do
[[ $bats_fn == assert_file_* ]] || continue
bats_decl=$(declare -f "$bats_fn") || true
if [ "${bats_decl-}" ]; then
eval "bats_$bats_decl"
eval "$bats_fn() {
BATSLIB_FILE_PATH_REM=\${BATSLIB_FILE_PATH_REM:-} \
BATSLIB_FILE_PATH_ADD=\${BATSLIB_FILE_PATH_ADD:-} \
bats_$bats_fn \"\$@\"
}"
fi
done
from bats-file.
Related Issues (20)
- Renew README
- add assert_file_executable
- assert_file_owner, assert_no_file_owner /dir/owner
- Add installation instructions HOT 1
- Failure to run `temp_make` in the `setup_file` block. HOT 1
- sudo required by assert_file_owner? HOT 2
- shellcheck
- assert_symlink_to
- failed assert_file_exist reports as not executed when teardown() with load HOT 12
- assert_size_not_zero breaks due to hardcoded use of test paths TEST_FIXTURE_ROOT HOT 1
- bats-file npm package removed by security team HOT 8
- assert_not_file_owner contains (debug?) sudo calls HOT 1
- Add assert_file_contains, assert_file_size_equals, assert_file_empty, assert_file_not_empty
- Including bats-support as a submodule causes submodule update to fail on projects which use bats-file as a submodule HOT 1
- add more tests for shells and OSes
- assert_file_not_contains is not implemented
- maintain changelog
- add assert_equal_files HOT 1
- add more file based tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bats-file.