Skip to content

Commit

Permalink
Remove spurious error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dvalinrh committed Nov 13, 2024
1 parent b8a79cb commit 4f5719e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
9 changes: 6 additions & 3 deletions general_setup
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ to_pstats="default"
to_no_pkg_install=0

top_dir=`echo $0 | sed "s/workloads/:/g" | cut -d':' -f 1`
to_tuned_setting=`${top_dir}/test_tools/get_tuned_setting`
to_tuned_setting=""

i=1
j=$#
Expand Down Expand Up @@ -192,11 +192,14 @@ do
;;
esac
done
if [ $to_times_to_run -eq 0 ]; then
to_times_to_run=$iteration_default
fi
TOOLS_BIN=`pwd`/test_tools
if [ ! -d $TOOLS_BIN ]; then
TOOLS_BIN=${to_home_root}/${to_user}/test_tools
fi
if [ $to_times_to_run -eq 0 ]; then
to_times_to_run=$iteration_default
if [[ $to_tuned_setting == "" ]]; then
to_tuned_setting=`./test_tools/get_tuned_setting`
fi
set $gen_args_back
12 changes: 10 additions & 2 deletions move_data
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#

cp ${1}/meta_data*.yml $2
cp ${1}/hw_info.out $2
copy_file()
{
ls $1 &> /dev/null
if [[ $? -eq 0 ]]; then
cp ${1} $2
fi
}

copy_file ${1}/meta_data*.yml $2
copy_file ${1}/hw_info.out $2

7 changes: 5 additions & 2 deletions save_results
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ user=""

copy_file()
{
if [[ $1 != "" ]] && [[ $2 != "" ]] && [[ ! -f $2 ]]; then
cp -R $1 $2
ls $1 &> /dev/null
if [[ $? -eq 0 ]]; then
if [[ $1 != "" ]] && [[ $2 != "" ]] && [[ ! -f $2 ]]; then
cp -R $1 $2
fi
fi
}

Expand Down

0 comments on commit 4f5719e

Please sign in to comment.