diff --git a/test/init.inc b/test/init.inc index 023f1d7a2f..6e51c54720 100644 --- a/test/init.inc +++ b/test/init.inc @@ -109,8 +109,7 @@ function copy_to_download_dir($f) { function add_user($prefs_file) { global $BOINC_EMAIL; - - PassThru("sed -e s/BOINC_MASTER_URL/$BOINC_MASTER_URL/ $prefs_file > prefs_temp.xml"); + PassThru("sed -e s/BOINC_MASTER_URL/\$BOINC_MASTER_URL/ $prefs_file > prefs_temp.xml"); $cmd = "../tools/add user -email_addr $BOINC_EMAIL -user_name David -web_password foobar -authenticator 3f7b90793a0175ad0bda68684e8bd136 "; if ($prefs_file) { $cmd = $cmd." -prefs_file prefs_temp.xml"; diff --git a/test/test_uc.php b/test/test_uc.php index 5546c77453..6b8f856ce7 100644 --- a/test/test_uc.php +++ b/test/test_uc.php @@ -13,14 +13,13 @@ init_client_dirs("prefs1.xml"); copy_to_download_dir("input"); add_platform(null); - add_user(null); + add_user("prefs.xml"); add_app("upper_case", null, null); create_work("-appname upper_case -rsc_iops 180000000000.0 -rsc_fpops 0.0 -wu_name uc_wu -wu_template uc_wu -result_template uc_result -nresults 2 input input input input input"); start_feeder(); //run_client("-exit_after 10"); run_client("-exit_when_idle"); stop_feeder(); - check_results_done(); compare_file("uc_wu_0_0", "uc_correct_output"); compare_file("uc_wu_1_0", "uc_correct_output");