@@ -177,7 +177,7 @@ sub Init {
177177
178178 Debug(" Collect cluster information...\n " );
179179 my $clusterinfo_module = MTT::Values::Value($ini , " vbench" , " clusterinfo_module" );
180- $clusterinfo_module = " ClusterInfo " if (!defined ($clusterinfo_module ) || $clusterinfo_module eq " " );
180+ $clusterinfo_module = " UnknownCluster " if (!defined ($clusterinfo_module ) || $clusterinfo_module eq " " );
181181 Debug(" Use $clusterinfo_module module to collect information.\n " );
182182
183183 $clusterInfo = MTT::Module::Run(" MTT::Reporter::Utils::$clusterinfo_module " , " get_cluster_info" , MTT::Values::Functions::env_hosts(2));
@@ -540,19 +540,29 @@ sub _process_phase_test_run {
540540 # Special named export environment variables set in mpirun command line
541541 # should be stored as part of data in GDS datastore
542542 while ( $phase_form -> {cmdline } =~ m /\s +-x\s +(custom_\w +)\= ([^\s\"\' ]+)/ g ){
543- $phase_form -> {$1 } = $2 ;
543+ my $value = $2 ;
544+ eval " \$ value = \" $value \" " ;
545+ $phase_form -> {$1 } = $value ;
544546 }
545547 while ( $phase_form -> {cmdline } =~ m /\s +-x\s +(custom_\w +)\=\" ([^\" ]*)\" / g ){
546- $phase_form -> {$1 } = $2 ;
548+ my $value = $2 ;
549+ eval " \$ value = \" $value \" " ;
550+ $phase_form -> {$1 } = $value ;
547551 }
548552 while ( $phase_form -> {cmdline } =~ m /\s +-x\s +\" (custom_\w +)\= ([^\" ]*)\" / g ){
549- $phase_form -> {$1 } = $2 ;
553+ my $value = $2 ;
554+ eval " \$ value = \" $value \" " ;
555+ $phase_form -> {$1 } = $value ;
550556 }
551557 while ( $phase_form -> {cmdline } =~ m /\s +-x\s +(custom_\w +)\=\' ([^\' ]*)\' / g ){
552- $phase_form -> {$1 } = $2 ;
558+ my $value = $2 ;
559+ eval " \$ value = \" $value \" " ;
560+ $phase_form -> {$1 } = $value ;
553561 }
554562 while ( $phase_form -> {cmdline } =~ m /\s +-x\s +\' (custom_\w +)\= ([^\' ]*)\' / g ){
555- $phase_form -> {$1 } = $2 ;
563+ my $value = $2 ;
564+ eval " \$ value = \" $value \" " ;
565+ $phase_form -> {$1 } = $value ;
556566 }
557567
558568 # filling cached fields with prefix "cached_"
@@ -803,7 +813,7 @@ sub _fill_submit_info {
803813 $info_form -> {hostname } = $hostname ;
804814 $info_form -> {local_username } = $local_username ;
805815 $info_form -> {http_username } = $username ;
806- $info_form -> {mtt_version } = " TODO " ;
816+ $info_form -> {mtt_version } = $MTT::Version::Combined ;
807817 }
808818 return $info_form ;
809819}
0 commit comments