Python 3.1 test issue

rakeshravinlr at gmail.com rakeshravinlr at gmail.com
Mon Dec 21 05:33:19 EST 2015


On Wednesday, December 16, 2015 at 11:53:14 PM UTC+5:30, George Trojan wrote:
> I installed Python 3.1 on RHEL 7.2.  The command make test hangs (or 
> takes a lot of time) on test_subprocess.
> 
> [396/397] test_subprocess
> ^C
> Test suite interrupted by signal SIGINT.
> 5 tests omitted:
>      test___all__ test_distutils test_site test_socket test_warnings
> 381 tests OK.
> 4 tests altered the execution environment:
>      test___all__ test_distutils test_site test_warnings
> 11 tests skipped:
>      test_devpoll test_kqueue test_msilib test_ossaudiodev
>      test_startfile test_tix test_tk test_ttk_guionly test_winreg
>      test_winsound test_zipfile64
> make: *** [test] Error 1
> 
> CPU was at 100% all the time for process
> 
> gtrojan  15758  8907 94 17:29 pts/6 00:06:47 
> /home/gtrojan/Downloads/Python-3.5.1/python -R -bb -E -Wdefault 
> -Werror::BytesWarning -X faulthandler -m test.regrtest --slaveargs 
> [["test_socket", 0, false], {"huntrleaks": false, "match_tests": null, 
> "failfast": false, "output_on_failure": false, "use_resources": 
> ["curses", "network", "decimal", "cpu", "subprocess", "urlfetch"], 
> "pgo": false, "timeout": null}]
> gtrojan  22889   336  0 17:36 pts/11   00:00:00 grep --color=auto 15758
> 
> Is this a problem?
> 
> George

can u help me to convert the folowing test case

Input:
/home/rebaca/azuki/streams/./tsudpsend /home/rebaca/azuki/streams/ebp/ebp-1250-2.ts 127.0.0.1 500011 2151832|/home/rebaca/azuki/streams/./tsudpsend /home/rebaca/azuki/streams/ebp/ebp-1251-2.ts 127.0.0.1 500012 2151832|/home/rebaca/azuki/streams/./tsudpsend /home/rebaca/azuki/streams/ebp/ebp-1250-2.ts 127.0.0.1 500013 2151832



Output:

AZ_HLS_PORT_BASED_VOD_TC6_STL_CMD='{ "TSUDPSEND":[ { "ebp_1250_2_av":"tsudpsend '+ STREAMS_PATH +'/ebp/ebp-1250-2.ts '+ DEVICE_UNDER_TEST +'5000112151832" }, { "ebp_1250_2_v": "tsudpsend '+ STREAMS_PATH+'/ebp/ebp-1250-2.ts '+ DEVICE_UNDER_TEST +' 500012 2151832" },{"ebp_1250_2_a": "tsudpsend '+ STREAMS_PATH +'/ebp/ebp-1250-2.ts '+DEVICE_UNDER_TEST +' 500013 2151832" } ] }' 


how to get output in the following format when the input is given using python



# The following are commands used for pumping the streams.
"/home/rebaca/azuki/streams/./tsudpsend"==> this is the path of the tool
used for pumping streams.
# "/home/rebaca/azuki/streams/ebp/ebp-1250-2.ts" ==>  Stream Path
# "127.0.0.1" & "500011" ==> Device IP & Port, respectively, to which
the stream needs to be pumped.
# "2151832" ==> Overall Bitrate of the input stream. 



please help me if u can



More information about the Python-list mailing list