From 83abc6c0d69c7337565925440688b6a0db60bf59 Mon Sep 17 00:00:00 2001 From: Rahul C S Date: Thu, 15 Mar 2012 16:30:08 +0530 Subject: Make get_date file an actual script. *Also confessing blunders on fs_mark sanity. :( Signed-off-by: Rahul C S Change-Id: I7027f90879d3e9ba9f95cc79aca726b7ab9a6d8f --- perf-framework/get_date | 15 ++++++++++----- sanity/system_light/scripts/fs_mark/fs_mark.sh | 4 ++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/perf-framework/get_date b/perf-framework/get_date index 335359d..6f8cb9a 100755 --- a/perf-framework/get_date +++ b/perf-framework/get_date @@ -1,5 +1,10 @@ -date +%s -ssh -l root 10.1.10.30 "date +%s" -ssh -l root 10.1.10.31 "date +%s" -ssh -l root 10.1.10.35 "date +%s" -ssh -l root 10.1.10.36 "date +%s" +#!/bin/bash + +CONFIG_FILE=gf_perf_config +source $CONFIG_FILE + +date +%s; +for brick in $BRICK_IP_ADDRS +do + ssh -l root $brick "date +%s" +done diff --git a/sanity/system_light/scripts/fs_mark/fs_mark.sh b/sanity/system_light/scripts/fs_mark/fs_mark.sh index 53404c5..12df22f 100755 --- a/sanity/system_light/scripts/fs_mark/fs_mark.sh +++ b/sanity/system_light/scripts/fs_mark/fs_mark.sh @@ -5,9 +5,9 @@ function main () echo "start: `date +%T`" - for i in `seq 1 6` + for i in `seq 0 6` do - time fs_mark -d . -D SUBDIR_COUNT -t THR_COUNT -S $i 2>>$LOG_FILE 1>>$LOG_FILE + time fs_mark -d . -D $SUBDIR_COUNT -t $THR_COUNT -S $i 2>>$LOG_FILE 1>>$LOG_FILE if [ $? -ne 0 ]; then echo "end:`date +%T`"; return 11; -- cgit