1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-04-19 13:22:14 +03:00
bash-ini-parser/t/t0007-unwanted_file.sh
Pavel Rehak 6ed878d1b0 Unwanted file test.
File "2" is created after using cfg_writer.
2018-05-26 12:17:05 +02:00

21 lines
358 B
Bash
Executable File

#!/bin/bash
test_description="check unwanted file"
. setup.sh
DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0007
test_expect_success "Unwanted file" "
export COVERAGE_NAME=file_2_parser
cp ../.simplecov .
cfg_parser $DIR_TEST/file_2.ini
cfg_section_sec1
var1=bar
cfg_update sec1 var1
cfg_writer > file_2.out
test ! -e 2
"
test_done