tests: update tests to include the running username/group

That removes the requirement to keep a uid_wrapper specific
hack in check_upeer_id().
This commit is contained in:
Nikos Mavrogiannopoulos
2016-04-15 11:15:32 +02:00
parent 4c43f06ab5
commit 9a125c3aba
14 changed files with 26 additions and 57 deletions

View File

@@ -46,7 +46,11 @@ fi
update_config() {
file=$1
username=$(whoami)
group=$(groups|cut -f 1 -d ' ')
cp ${srcdir}/${file} "$file.tmp"
sed -i 's|@USERNAME@|'${username}'|g' "$file.tmp"
sed -i 's|@GROUP@|'${group}'|g' "$file.tmp"
sed -i 's|@SRCDIR@|'${srcdir}'|g' "$file.tmp"
CONFIG="$file.tmp"
}