File: test_inifile_set

package info (click to toggle)
openstack-pkg-tools 91
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 900 kB
  • sloc: sh: 3,830; makefile: 31
file content (18 lines) | stat: -rwxr-xr-x 393 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

. ../../../pkgos_func
. ../../../tests/osstt

cp example.ini example-result.ini

pkgos_inifile set example-result.ini DEFAULT lock_dir /var/lock
osstt_assertFilesAreSame example-result.ini example-after-fix-lock_dir.ini
rm example-result.ini
if [ "${RET}" = "yes" ] ; then
	exit 0
else
	echo "example-result.ini is not the same as example-after-fix-lock_dir.ini"
	exit 1
fi