attempt at new test syntax to fix linter bug

pull/108/head
Dave Musicant / thinkpad 2 years ago
parent 5371385aa1
commit 27eadad8a9

@ -7,8 +7,7 @@
load startup-shutdown
@test "commit log messages working"
{
function commit_log_messages_working { #@test
# Start up gitwatch with logging, see if works
${BATS_TEST_DIRNAME}/../gitwatch.sh -l 10 "$testdir/local/remote" 3>&- &
GITWATCH_PID=$!

@ -7,8 +7,7 @@
load startup-shutdown
@test "remote git dirs working, with commit logging"
{
function remote_git_dirs_working_with_commit_logging { #@test
# Move .git somewhere else
dotgittestdir=$(mktemp -d)
mv "$testdir/local/remote/.git" "$dotgittestdir"

@ -7,8 +7,7 @@
load startup-shutdown
@test "commit only when git status change"
{
function commit_only_when_git_status_change { #@test
# Start up gitwatch and capture its output
${BATS_TEST_DIRNAME}/../gitwatch.sh "$testdir/local/remote" > "$testdir/output.txt" 3>&- &

@ -7,8 +7,7 @@
load startup-shutdown
@test "syncing correctly"
{
function syncing_correctly { #@test
# Start up gitwatch and see if commit and push happen automatically
# after waiting two seconds
${BATS_TEST_DIRNAME}/../gitwatch.sh -r origin "$testdir/local/remote" 3>- &

Loading…
Cancel
Save