-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ jobs: | |
- name: Setup Tests | ||
run: bats bats/setup.bats | ||
|
||
- name: Test ext4 | ||
run: bats bats/ext4.bats |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bats | ||
# vim: set ft=sh sw=4 : | ||
|
||
load helper_print-info | ||
|
||
setup() { | ||
# get the containing directory of this file | ||
# use $BATS_TEST_FILENAME instead of ${BASH_SOURCE[0]} or $0, | ||
# as those will point to the bats executable's location or the preprocessed file respectively | ||
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )" | ||
# make executables in root of the repo visible to PATH | ||
PATH="$DIR/../:$PATH" | ||
} | ||
|
||
@test "format & mount loop with ext4" { | ||
run sudo $(command -v ebs-bootstrap) -config /tmp/ext4-bootstrap.yaml -mode force | ||
|
||
print_run_info | ||
[ "$status" -eq 0 ] && | ||
[[ "$output" = *"Successfuly formatted /dev/loop"*" to ext4"* ]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters