[erlang-bugs] Erlang Common Test: {shuffle {seed}} not working

Lars Hesel Christensen lars@REDACTED
Fri Feb 3 13:07:09 CET 2017


Hi Walter,

According to the ct docs (http://erlang.org/doc/man/common_test.html)
the shuffle seed should be on the form '{integer(),integer(),integer()}'.

Cheers,
Lars

On 02/02/2017 05:30 PM, Walter Weinmann wrote:
> OS version:     Ubuntu 16.10
> Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit]
> [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
> 
> Attached a small example file, the result in raw.log is: 
> 
> --- Test run on 2017/02/02 17:23:30 ---
> Converting "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/." to
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress" and re-inserting
> with add_patha/1
> 
> 
> Common Test v1.13 starting (cwd is
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress)
> 
> 
> Common Test: Running make in test directories...
> Including the following directories:
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/include"
> Recompile: my_shuffle_SUITE
> 
> CWD set to:
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/ct_run.test@REDACTED"
> 
> TEST INFO: 1 test(s), 1 suite(s)
> 
> Cover compiling 2 modules - this may take some time... done
> 
> Testing kvs_stress_idea.kvs_stress.my_shuffle_SUITE: Starting test (with
> repeated test cases)
> EXIT, reason {function_clause,
>                
>  [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
>                   {test_server_ctrl,shuffle_cases,3,
>                       [{file,"test_server_ctrl.erl"},{line,3175}]},
>                   {test_server_ctrl,run_test_cases_loop,5,
>                       [{file,"test_server_ctrl.erl"},{line,2591}]},
>                   {test_server_ctrl,run_test_cases,3,
>                       [{file,"test_server_ctrl.erl"},{line,2150}]},
>                   {test_server_ctrl,ts_tc,3,
>                       [{file,"test_server_ctrl.erl"},{line,1209}]},
>                   {test_server_ctrl,init_tester,10,
>                      
> [{file,"test_server_ctrl.erl"},{line,1163}]}]}Cover analysing... done
> 
> Updating
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/index.html ...
> done
> Updating
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/all_runs.html
> ... done
> 
> 
> Test run failed! Reason:
> {'EXIT',
>     {function_clause,
>         [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
>          {test_server_ctrl,shuffle_cases,3,
>              [{file,"test_server_ctrl.erl"},{line,3175}]},
>          {test_server_ctrl,run_test_cases_loop,5,
>              [{file,"test_server_ctrl.erl"},{line,2591}]},
>          {test_server_ctrl,run_test_cases,3,
>              [{file,"test_server_ctrl.erl"},{line,2150}]},
>          {test_server_ctrl,ts_tc,3,
>              [{file,"test_server_ctrl.erl"},{line,1209}]},
>          {test_server_ctrl,init_tester,10,
>              [{file,"test_server_ctrl.erl"},{line,1163}]}]}}
> 
> 
> 
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20170203/dc7eaa33/attachment.bin>


More information about the erlang-bugs mailing list