kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jun...@apache.org
Subject svn commit: r1366085 - /incubator/kafka/branches/0.8/system_test/single_host_multi_brokers/bin/run-test.sh
Date Thu, 26 Jul 2012 16:59:06 GMT
Author: junrao
Date: Thu Jul 26 16:59:06 2012
New Revision: 1366085

URL: http://svn.apache.org/viewvc?rev=1366085&view=rev
Log:
single_host_multi_brokers system test fails on laptop; patched by John Fung; reviewed by Jun
Rao; kafka-413

Modified:
    incubator/kafka/branches/0.8/system_test/single_host_multi_brokers/bin/run-test.sh

Modified: incubator/kafka/branches/0.8/system_test/single_host_multi_brokers/bin/run-test.sh
URL: http://svn.apache.org/viewvc/incubator/kafka/branches/0.8/system_test/single_host_multi_brokers/bin/run-test.sh?rev=1366085&r1=1366084&r2=1366085&view=diff
==============================================================================
--- incubator/kafka/branches/0.8/system_test/single_host_multi_brokers/bin/run-test.sh (original)
+++ incubator/kafka/branches/0.8/system_test/single_host_multi_brokers/bin/run-test.sh Thu
Jul 26 16:59:06 2012
@@ -29,7 +29,7 @@ readonly common_dir=${system_test_root}/
 source   ${common_dir}/util.sh                        # include the util script
 
 readonly base_dir=$(dirname $0)/..                    # root of this test suite
-readonly base_dir_full_path=$(readlink -f $base_dir)  # full path of the root of this test
suite
+readonly base_dir_full_path=`cd $base_dir; pwd`       # full path of the root of this test
suite
 readonly config_dir=${base_dir}/config
 
 readonly test_start_time="$(date +%s)"                # time starting the test
@@ -264,7 +264,7 @@ validate_results() {
         first_data_file_dir=${kafka_data_log_dirs[$i]}/${test_topic}-0
         first_data_file=`ls ${first_data_file_dir} | head -1`
         first_data_file_pathname=${first_data_file_dir}/$first_data_file
-        kafka_first_data_file_sizes[$i]=`stat -c%s ${first_data_file_pathname}`
+        kafka_first_data_file_sizes[$i]=`ls -l ${first_data_file_pathname} | awk '{print
$5}'`
         kafka_first_data_file_checksums[$i]=`cksum ${first_data_file_pathname} | awk '{print
$1}'`
         info "## broker[$i] data file: ${first_data_file_pathname} : [${kafka_first_data_file_sizes[$i]}]"
         info "##     ==> crc ${kafka_first_data_file_checksums[$i]}"



Mime
View raw message