Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Find the path of the logo on travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vergissberlin committed Jan 22, 2019
1 parent bccf77b commit 5cc777a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/acceptance/bashlight.bats
Expand Up @@ -19,13 +19,18 @@ BATS_TEST_DESCRIPTION="Test bashlight"

setup() {
echo "setup ${BATS_TEST_NAME} ..." >> ./bats.log
echo "path: ${BASHLIGHT_PATH}"
BASHLIGHT_PATH="${HOME}/.bin/bashlight"
}

teardown() {
echo "teardown ${BATS_TEST_NAME} ..." >> ./bats.log
}

@test "${TEST_NAME}: Test if command exists" {
command -v bashlight
}

@test "${TEST_NAME}: Test if command exists" {
run bashlight
[ "$status" -eq 0 ]
Expand All @@ -35,6 +40,6 @@ teardown() {
run bashlightLogo "1.2.3"
pwd
ls -lisah .
ls -lisah ../../src/bashlight
ls -lsiah ${BASHLIGHT_PATH}
[ "${lines[6]}" == ' |___/ v1.2.3' ]
}

0 comments on commit 5cc777a

Please sign in to comment.