Skip to content
Snippets Groups Projects
Commit 3a7e6db8 authored by jourdain's avatar jourdain
Browse files

RAMSES: Fix validate for ls

parent a048ca97
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ cd $bench_dir/testcase_large ...@@ -16,7 +16,7 @@ cd $bench_dir/testcase_large
echo "* ls -1 *.log" && ls -1 *.log echo "* ls -1 *.log" && ls -1 *.log
log_file=$1 log_file=$1
if [ -z "$log_file" ]; then if [ -z "$log_file" ]; then
log_file=`ls -thlx run_* | awk -F " " '{ print $1 }'` log_file=`ls -thlx1 run_* | awk 'NR < 2'`
echo "* No argument provided (ex: ./validate run_%m-%d-%y-%H-%M-%S.log) -> validation of the last run named $log_file" echo "* No argument provided (ex: ./validate run_%m-%d-%y-%H-%M-%S.log) -> validation of the last run named $log_file"
else else
echo "* Validation of the run named $log_file" echo "* Validation of the run named $log_file"
......
...@@ -16,7 +16,7 @@ cd $bench_dir/testcase_medium ...@@ -16,7 +16,7 @@ cd $bench_dir/testcase_medium
echo "* ls -1 *.log" && ls -1 *.log echo "* ls -1 *.log" && ls -1 *.log
log_file=$1 log_file=$1
if [ -z "$log_file" ]; then if [ -z "$log_file" ]; then
log_file=`ls -thlx run_* | awk -F " " '{ print $1 }'` log_file=`ls -thlx1 run_* | awk 'NR < 2'`
echo "* No argument provided (ex: ./validate run_%m-%d-%y-%H-%M-%S.log) -> validation of the last run named $log_file" echo "* No argument provided (ex: ./validate run_%m-%d-%y-%H-%M-%S.log) -> validation of the last run named $log_file"
else else
echo "* Validation of the run named $log_file" echo "* Validation of the run named $log_file"
......
...@@ -16,7 +16,7 @@ cd $bench_dir/DEBUG ...@@ -16,7 +16,7 @@ cd $bench_dir/DEBUG
echo "* ls -1 *.log" && ls -1 *.log echo "* ls -1 *.log" && ls -1 *.log
log_file=$1 log_file=$1
if [ -z "$log_file" ]; then if [ -z "$log_file" ]; then
log_file=`ls -thlx run_* | awk -F " " '{ print $1 }'` log_file=`ls -thlx1 run_* | awk 'NR < 2'`
echo "* No argument provided (ex: ./validate run_%m-%d-%y-%H-%M-%S.log), validation of the last run named $log_file" echo "* No argument provided (ex: ./validate run_%m-%d-%y-%H-%M-%S.log), validation of the last run named $log_file"
else else
echo "* Validation of the run named $log_file" echo "* Validation of the run named $log_file"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment