From 7cff116df364b9c9733d4bdcec83b134a2152dc5 Mon Sep 17 00:00:00 2001 From: ge Date: Sat, 14 May 2022 20:10:49 +0300 Subject: [PATCH] fix: Fix source_script() test --- tests/source_script.bats | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/source_script.bats b/tests/source_script.bats index 0ff95de..2ca5f12 100644 --- a/tests/source_script.bats +++ b/tests/source_script.bats @@ -57,14 +57,14 @@ setup() { assert_output --partial 'Error: Unsupported URI scheme: scp' } -@test "Set local target" { +@test "Set __main_target" { . source.sh source_script $DIR/files/basic.plan - [ "$local_target" == 'file:/var/backup' ] + [ "$__main_target" == 'file:/var/backup' ] } -@test "Set local target from multiple 'file' targets" { +@test "Set __main_target from multiple 'file' targets" { . source.sh source_script $DIR/files/multiple_file_targets.plan - [ "$local_target" == 'file:///home/backups' ] + [ "$__main_target" == 'file:///home/backups' ] }