From a5e2a00febcc5cfd32c2ec4cd0bcbe6df46756df Mon Sep 17 00:00:00 2001 From: ge Date: Sun, 21 Aug 2022 04:52:56 +0300 Subject: [PATCH] fix: Unbreak tests --- tests/source_script.bats | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/source_script.bats b/tests/source_script.bats index 6f88aac..d4664d3 100644 --- a/tests/source_script.bats +++ b/tests/source_script.bats @@ -17,49 +17,49 @@ setup() { @test "Bad script syntax" { . source.sh - __user_script=script.sh + backup_script=script.sh run source_script $DIR/files/bad_syntax.sh assert_output --partial 'Error: script.sh: Please check your syntax' } @test "Empty script" { . source.sh - __user_script=script.sh + backup_script=script.sh run source_script $DIR/files/empty_script.sh assert_output --partial 'Error: script.sh: sources array is not set' } @test "Empty sources array" { . source.sh - __user_script=script.sh + backup_script=script.sh run source_script $DIR/files/empty_sources.sh assert_output --partial 'Error: script.sh: sources array is not set' } @test "Empty targets array" { . source.sh - __user_script=script.sh + backup_script=script.sh run source_script $DIR/files/empty_targets.sh assert_output --partial 'Error: script.sh: targets array is not set' } @test "No targets with 'file' URI scheme" { . source.sh - __user_script=script.sh + backup_script=script.sh run source_script $DIR/files/no_file_target.sh assert_output --partial "Error: script.sh: 'file' scheme is not set in targets. You must provide one or more targets with 'file' scheme." } @test "Unsuported source scheme" { . source.sh - __user_script=script.sh + backup_script=script.sh run source_script $DIR/files/unsupported_source_scheme.sh assert_output --partial 'Error: script.sh: Unsupported URI scheme: mongo' } @test "Unsuported target scheme" { . source.sh - __user_script=script.sh + backup_script=script.sh run source_script $DIR/files/unsupported_target_scheme.sh assert_output --partial 'Error: script.sh: Unsupported URI scheme: scp' }