[CMake] Setting a HTTP header when uploading test results

Maciej (Matchek) Bliziński maciej at opencsw.org
Tue Jan 3 13:35:55 EST 2012


Hello everyone,

I tried running "gmake Experimental" in cmake-2.8.7 on a host that
needs to use a HTTP proxy to communicate with the outside world. The
tests ran, but the upload phase has failed.

98% tests passed, 5 tests failed out of 210

Label Time Summary:
Label1    =   0.24 sec
Label2    =   0.24 sec

Total Test time (real) = 1370.63 sec

The following tests FAILED:
         36 - COnly (Failed)
         72 - Simple_EclipseGenerator (Failed)
         73 - Simple_CodeBlocksGenerator (Failed)
         74 - Simple_KDevelop3Generator (Failed)
        141 - CTestTestUpload (Failed)
Error kstat returned :1
Error kstat returned :1
Error kstat returned :1
Error kstat returned :1
Error kstat returned :1
Error kstat returned :1
Error kstat returned :1
Error kstat returned :1
Performing coverage
 Cannot find any coverage files. Ignoring Coverage request.
Submit files (using http)
   Using HTTP submit method
   Drop site:http://www.cdash.org/CDash/submit.php?project=CMake
   Submit failed, waiting 5 seconds...
   Retry submission: Attempt 1 of 3
   Submit failed, waiting 5 seconds...
   Retry submission: Attempt 2 of 3
   Submit failed, waiting 5 seconds...
   Retry submission: Attempt 3 of 3
   Error when uploading file:
/home/maciej/src/opencsw/pkg/cmake/trunk/work/solaris9-sparc/build-isa-sparcv8/cmake-2.8.7/Testing/20120103-1755/Build.xml
   Error message was: The requested URL returned error: 417
   Problems when submitting via HTTP
Errors while running CTest
gmake[3]: *** [CMakeFiles/Experimental] Error 72
gmake[2]: *** [CMakeFiles/Experimental.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Experimental.dir/rule] Error 2
gmake: *** [Experimental] Error 2

The HTTP 417 problem is something I've already seen, and it's related
to the proxy.

In another piece of code, I've worked around it, by manually setting
the "Expect:" header to empty.

http://lists.opencsw.org/pipermail/devel/2011-January/017389.html

+    c.setopt(pycurl.HTTPHEADER, ["Expect:"]) # Fixes the HTTP 417 error

Is it possible to do the same thing in cmake's test result uploader?

Maciej


More information about the CMake mailing list