diff --git a/test/test.inc b/test/test.inc index e468dd444b..df027bc5ca 100644 --- a/test/test.inc +++ b/test/test.inc @@ -199,7 +199,7 @@ class Project { $app = $app_version->app; if ($app->name == "core client") { $dir = "$source_dir/client"; - $exec_name = sprintf("boinc_%d.%02d_%s", get_env_var("BOINC_MAJOR_VERSION"), get_env_var("BOINC_MINOR_VERSION"), $app_version->platform_name); + $exec_name = sprintf("boinc_%d.%d_%s", get_env_var("BOINC_MAJOR_VERSION"), get_env_var("BOINC_MINOR_VERSION"), $app_version->platform_name); } else { $dir = "$source_dir/apps"; $exec_name = $app_version->exec_name; @@ -433,8 +433,8 @@ class Host { echo "\nRunning core client asynch\n"; $source_dir = get_env_var("BOINC_SRC_DIR"); $platform = get_env_var("BOINC_PLATFORM"); - - PassThru("cd $this->host_dir; $source_dir/client/boinc_0.02_$platform $args > client.out"); + $exec_name = sprintf("boinc_%d.%d_%s", get_env_var("BOINC_MAJOR_VERSION"), get_env_var("BOINC_MINOR_VERSION"), $platform); + PassThru("cd $this->host_dir; $source_dir/client/$exec_name $args > client.out"); exit(0); } } @@ -451,10 +451,12 @@ class Host { } function run($args) { + echo "\nRunning core client\n"; $source_dir = get_env_var("BOINC_SRC_DIR"); $platform = get_env_var("BOINC_PLATFORM"); - PassThru("cd $this->host_dir; $source_dir/client/boinc_0.02_$platform $args > client.out"); + $exec_name = sprintf("boinc_%d.%d_%s", get_env_var("BOINC_MAJOR_VERSION"), get_env_var("BOINC_MINOR_VERSION"), $platform); + PassThru("cd $this->host_dir; $source_dir/client/$exec_name $args > client.out"); } // read a CPU time file written by the client. // This is sort of a kludge.