Change-Id: I58f020ba7d34d2cfeffaba5a3a30c3c2087e57b2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
+#!/bin/bash
echo "Cleaning up Robot installation..."
# ${ROBOT_VENV} comes from the include-raw-integration-install-robotframework.sh
# script.
# TODO: Is this still needed when we have integration-cleanup-workspace?
-rm -rf ${ROBOT_VENV}
+rm -rf "${ROBOT_VENV}"
+#!/bin/bash
echo "Cleaning up the workspace..."
# Leftover files from previous runs could be wrongly copied as results.
# Keep the cloned integration/test repository!
-for file_or_dir in `ls -A -1 -I "test"`
+for file_or_dir in *
# FIXME: Make this compatible with multipatch and other possible build&run jobs.
do
- rm -vrf "$file_or_dir"
+ if [ "$file_or_dir" != "test" ]; then
+ rm -vrf "$file_or_dir"
+ fi
done