JIRA: VAL-88
The files in results folder are created by root in container.
Signed-off-by: valentin.radulescu <valentin.radulescu@enea.com>
Change-Id: I9d7b9450c6ae379a8f41492d84f037e3557ef032
cwd=$(pwd)
is_optional="false"
+finish() {
+ # Fix ownership of output files
+ user_id=$(stat -c '%u:%g' $cwd)
+ sudo chown -R ${user_id} $results_dir
+}
+
info () {
logger -s -t "run_blu_val.info" "$*"
}
fi
fi
+trap finish EXIT
+
if [ ! -d "$cwd/validation" ]
then
git clone http://gerrit.akraino.org/r/validation