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
|
sudo ./bats-core/install.sh /usr/local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install bats-support and bats-assert
|
# Install bats-support and bats-assert in the test directory
|
||||||
mkdir -p tests/test_helper
|
mkdir -p tests/test_helper
|
||||||
if [ ! -d "tests/test_helper/bats-support" ]; then
|
cd tests/test_helper
|
||||||
git clone https://github.com/bats-core/bats-support.git tests/test_helper/bats-support --depth 1
|
if [ ! -d "bats-support" ]; then
|
||||||
|
git clone https://github.com/bats-core/bats-support.git --depth 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d "tests/test_helper/bats-assert" ]; then
|
if [ ! -d "bats-assert" ]; then
|
||||||
git clone https://github.com/bats-core/bats-assert.git tests/test_helper/bats-assert --depth 1
|
git clone https://github.com/bats-core/bats-assert.git --depth 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d "tests/test_helper/bats-file" ]; then
|
if [ ! -d "bats-file" ]; then
|
||||||
git clone https://github.com/bats-core/bats-file.git tests/test_helper/bats-file --depth 1
|
git clone https://github.com/bats-core/bats-file.git --depth 1
|
||||||
fi
|
fi
|
||||||
|
cd ../../
|
||||||
|
|
||||||
- name: Set up SSH
|
- name: Set up SSH
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env bats
|
#!/usr/bin/env bats
|
||||||
|
|
||||||
# Load BATS helper libraries
|
# Load BATS helper libraries
|
||||||
load 'tests/test_helper/bats-support/load'
|
load 'test_helper/bats-support/load'
|
||||||
load 'tests/test_helper/bats-assert/load'
|
load 'test_helper/bats-assert/load'
|
||||||
load 'tests/test_helper/bats-file/load'
|
load 'test_helper/bats-file/load'
|
||||||
|
|
||||||
# Simple test for parse_volume function
|
# Simple test for parse_volume function
|
||||||
@test "parse_volume should parse volume string correctly" {
|
@test "parse_volume should parse volume string correctly" {
|
||||||
|
|||||||
Reference in New Issue
Block a user