Boost logo

Boost Testing :

Subject: Re: [Boost-testing] proxy issues with downloading regression scripts
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2014-12-11 16:19:20


No, the quotes do not seem to help.
I modified run.py to just print the proxy as follows:
%cat run.py

#!/usr/bin/python

# Copyright Rene Rivera 2007-2013
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

import os
import os.path
import shutil
import sys
import urllib

proxy = None
for a in sys.argv[1:]:
if a.startswith('--proxy='):
proxy = {'https' : a.split('=')[1] }
print '--- %s' %(proxy['https'])
%
%python run.py --runner=oracle --toolsets=sun --tag=develop --proxy=http://www-proxy.us.oracle.com:80
--- http://www-proxy.us.oracle.com:80

Now it prints the proxy!

Thanks,

Aparna

----- Original Message -----
From: grafikrobot_at_[hidden]
To: boost-testing_at_[hidden]
Sent: Thursday, December 11, 2014 12:13:44 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

On Thu, Dec 11, 2014 at 1:56 PM, Aparna Kumta < aparna.kumta_at_[hidden] > wrote:

I seem to have trouble in downloading the regression scripts.
My earlier thread on this issue is
http://lists.boost.org/boost-testing/2014/11/7735.php

I have copied run.py in my directory and invoke the script as follows:
python run.py --runner=oracle --toolsets=sun --tag=develop --proxy= http://www-proxy.us.oracle.com:80 --bjam-toolset=sun --pjl-toolset=sun "--bjam-options=-j16"

The error message I see is:
# Running regressions in /net/pontus/export/users/akumta/boost_proxy...
# Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
# Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src. ..
Traceback (most recent call last):
File "run.py", line 70, in <module>
from regression import runner
File "/net/pontus/export/users/akumta/boost_proxy/boost_regression_src/regression.py", line 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
^
SyntaxError: invalid syntax

I don't see line #60 getting executed:

print '--- %s' %(proxy['https'])

Which suggests that for some reason it's not correctly recognizing the proxy option. Could you put quotes around the proxy option. Maybe something in the shell is mucking with the option.

-- 
-- Rene Rivera 
-- Grafik - Don't Assume Anything 
-- Robot Dreams - http://robot-dreams.net 
-- rrivera/ acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail


Boost-testing list run by mbergal at meta-comm.com