tests/config/pass/everything/pass.bats: make test directory the CWD
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 15 May 2020 19:31:11 +0000 (15:31 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 22 May 2020 16:30:18 +0000 (12:30 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/config/pass/everything/pass.bats

index ba17e65f30335c3b50e01d2a14baa57da0e22889..884aa7787653e3ad8fcdaa92f08da4e618cb7fe4 100644 (file)
@@ -26,6 +26,7 @@ load ../../common
 
 @test 'config file using all features makes barectf pass' {
   barectf_config_check_success config.yaml
+  pushd "$BATS_TEST_DIRNAME" >/dev/null
   [ -f metadata ]
   [ -f bctf.c ]
   [ -f bctf.h ]
@@ -53,4 +54,5 @@ load ../../common
   nm bctf.o | grep bctf_packet_is_open
   nm bctf.o | grep bctf_packet_set_buf
   nm bctf.o | grep bctf_packet_size
+  popd
 }
This page took 0.025036 seconds and 4 git commands to generate.