test: support local-first testing
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Cherry-picked from #389 Thanks @p4u1.
This commit is contained in:
parent
92b073d5b6
commit
316b59b465
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
_common_setup() {
|
||||
load '/usr/lib/bats/bats-support/load'
|
||||
load '/usr/lib/bats/bats-assert/load'
|
||||
load '/usr/lib/bats/bats-file/load'
|
||||
bats_load_library bats-support
|
||||
bats_load_library bats-assert
|
||||
bats_load_library bats-file
|
||||
|
||||
load "$PWD/tests/integration/helpers/app"
|
||||
load "$PWD/tests/integration/helpers/git"
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
_add_server() {
|
||||
if [[ "$TEST_SERVER" == "default" ]]; then
|
||||
run $ABRA server add -l
|
||||
else
|
||||
run $ABRA server add "$TEST_SERVER"
|
||||
fi
|
||||
assert_success
|
||||
assert_exists "$ABRA_DIR/servers/$TEST_SERVER"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue