Fix BATS helper library paths and installation
This commit is contained in:
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@@ -38,17 +38,19 @@ jobs:
|
||||
sudo ./bats-core/install.sh /usr/local
|
||||
fi
|
||||
|
||||
# Install bats-support and bats-assert
|
||||
# Install bats-support and bats-assert in the test directory
|
||||
mkdir -p tests/test_helper
|
||||
if [ ! -d "tests/test_helper/bats-support" ]; then
|
||||
git clone https://github.com/bats-core/bats-support.git tests/test_helper/bats-support --depth 1
|
||||
cd tests/test_helper
|
||||
if [ ! -d "bats-support" ]; then
|
||||
git clone https://github.com/bats-core/bats-support.git --depth 1
|
||||
fi
|
||||
if [ ! -d "tests/test_helper/bats-assert" ]; then
|
||||
git clone https://github.com/bats-core/bats-assert.git tests/test_helper/bats-assert --depth 1
|
||||
if [ ! -d "bats-assert" ]; then
|
||||
git clone https://github.com/bats-core/bats-assert.git --depth 1
|
||||
fi
|
||||
if [ ! -d "tests/test_helper/bats-file" ]; then
|
||||
git clone https://github.com/bats-core/bats-file.git tests/test_helper/bats-file --depth 1
|
||||
if [ ! -d "bats-file" ]; then
|
||||
git clone https://github.com/bats-core/bats-file.git --depth 1
|
||||
fi
|
||||
cd ../../
|
||||
|
||||
- name: Set up SSH
|
||||
run: |
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
# Load BATS helper libraries
|
||||
load 'tests/test_helper/bats-support/load'
|
||||
load 'tests/test_helper/bats-assert/load'
|
||||
load 'tests/test_helper/bats-file/load'
|
||||
load 'test_helper/bats-support/load'
|
||||
load 'test_helper/bats-assert/load'
|
||||
load 'test_helper/bats-file/load'
|
||||
|
||||
# Simple test for parse_volume function
|
||||
@test "parse_volume should parse volume string correctly" {
|
||||
|
||||
Reference in New Issue
Block a user