diff --git a/test/init.inc b/test/init.inc index 9a03b6569c..d46bc81f35 100644 --- a/test/init.inc +++ b/test/init.inc @@ -108,10 +108,14 @@ function add_prefs($file) { PassThru("../tools/add prefs -email_addr $BOINC_EMAIL -prefs_file $file"); } -function add_platform() { +function add_platform($platform) { global $BOINC_PLATFORM; - PassThru("../tools/add platform -platform_name $BOINC_PLATFORM"); + if( $platform ) { + PassThru("../tools/add platform -platform_name $platform"); + } else { + PassThru("../tools/add platform -platform_name $BOINC_PLATFORM"); + } } function add_core_client_message($message, $priority) { diff --git a/test/test_concat.php b/test/test_concat.php index 9441993d76..9c8bdaa216 100644 --- a/test/test_concat.php +++ b/test/test_concat.php @@ -11,7 +11,7 @@ clear_data_dirs(); init_client_dirs("account1.xml"); copy_to_download_dir("input"); - add_platform(); + add_platform(null); add_core_client(); add_user(null); add_app("concat"); diff --git a/test/test_uc.php b/test/test_uc.php index 4829c3239c..c986635b7d 100644 --- a/test/test_uc.php +++ b/test/test_uc.php @@ -11,7 +11,7 @@ clear_data_dirs(); init_client_dirs("account1.xml"); copy_to_download_dir("input"); - add_platform(); + add_platform(null); add_user(null); add_app("upper_case"); create_work("-appname upper_case -wu_name uc_wu -wu_template uc_wu -result_template uc_result -nresults 2 input input");