From 8cae155a01cb2c72170c965b535a77f8950e891b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 28 Sep 2015 10:54:55 +0200 Subject: [PATCH] Bug 14905: Search_utf8.t fails to upload a file Content-Type: text/plain; charset=utf-8 Running the test fails on test 7: not ok 7 - upload succeeded The changes on bug 14321 included a temp flag for script upload-file.pl. Since this upload for stage-marc-import should be temporary, adding this flag to line 131 resolves the problem. Test plan: Run the adjusted test. NOTE: I still had some problems with this test. And will still be looking to these errors (perhaps open a new report). But this fix should at least fix the above-mentioned test. --- t/db_dependent/www/search_utf8.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t index 737ed39..6229254 100644 --- a/t/db_dependent/www/search_utf8.t +++ b/t/db_dependent/www/search_utf8.t @@ -128,7 +128,7 @@ sub test_search{ 'go to stage MARC' ); $agent->post( - "$intranet/cgi-bin/koha/tools/upload-file.pl", + "$intranet/cgi-bin/koha/tools/upload-file.pl?temp=1", [ 'fileToUpload' => [$file], ], 'Content_Type' => 'form-data', ); -- 1.7.10.4