tarantool / test-run

Tarantool functional testing framework
14 stars 17 forks source link

test-run truncates script name at `.` #300

Closed EvgenyMekhanik closed 1 year ago

EvgenyMekhanik commented 3 years ago

Step to reproduce:

  1. Create simple test files with the following content: box/box.truncate-at-dot.test.lua:

    env = require('test_run')
    test_run = env.new()
    test_run:cmd("create server test with script='box/box.truncate-at-dot.lua'")
    test_run:cmd("start server test")
    test_run:cmd("stop server test")
    test_run:cmd("cleanup server test")
    test_run:cmd("delete server test")    

    box/box.truncate-at-dot.lua:

    #!/usr/bin/env tarantool
    require('console').listen(os.getenv('ADMIN'))
    box.cfg({
    listen = os.getenv('LISTEN'),
    })

    empty box/box.truncate-at-dot.result, only needed to run the test.

  2. ./test-run.py box/box.truncate-at-dot.test.lua fails with following output:

    [001] Starting instance box.truncate-at-dot...
    [001] Start failed: builtin/box/console.lua:865: failed to create server unix/:/home/evgeny/TARANTOOL/IPROTO/tarantool/test/var/001_box/box.socket-admin: Address already in use
    [001] 
    [001] [Instance "box"] Failed to start tarantool instance "box"
    [001] [ fail ]
Totktonada commented 3 years ago

test-run truncate test name at .

I guess you meant a script name?

EvgenyMekhanik commented 3 years ago

test-run truncate test name at .

I guess you meant a script name?

Yes.