cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Motta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10541) cqlshlib tests cannot run on Windows
Date Fri, 30 Oct 2015 00:24:27 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981638#comment-14981638
] 

Paulo Motta commented on CASSANDRA-10541:
-----------------------------------------

I fixed the symlink problem quite easily with this [commit|https://github.com/pauloricardomg/cassandra/commit/a8b59ca76d454b6d5eedf49145833e4cb3ed7632],
then I hit a dead end: the cqlsh tests are all based on the [pty|https://docs.python.org/2/library/pty.html]
*linux-only* module to interact with the cqlsh terminal, and I didn't find any suitable replacement
on WIndows. So, I see 3 bad options here:
# Do our own interacting with the shell via python ctypes and Win32 API (dangerous territory)
# Reimplement the tests using deprecated/unmaintained and possibly broken libraries [winpexpect|https://bitbucket.org/geertj/winpexpect/overview]
or [WExpect|https://gist.github.com/anthonyeden/8488763]
# Run interactive pseudo-terminal based cqlsh tests only on linux, and use [cqlsh dtests|https://github.com/riptano/cassandra-dtest/tree/master/cqlsh_tests]
for non-interactive tests on both platforms.

Any suggestions [~JoshuaMcKenzie] ?

> cqlshlib tests cannot run on Windows
> ------------------------------------
>
>                 Key: CASSANDRA-10541
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10541
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Benjamin Lerer
>            Assignee: Paulo Motta
>            Priority: Minor
>              Labels: cqlsh
>
> If I try to run the {{cqlshlib}} tests on Windows, I got the following error:
> {quote}
> ======================================================================
> ERROR: Failure: AttributeError ('module' object has no attribute 'symlink')
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Python27\lib\site-packages\nose\loader.py", line 414, in loadTestsFromName
>     addr.filename, addr.module)
>   File "C:\Python27\lib\site-packages\nose\importer.py", line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "C:\Python27\lib\site-packages\nose\importer.py", line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "[...]\pylib\cqlshlib\test\__init__.py", line 17, in <module>
>     from .cassconnect import create_test_db, remove_test_db
>   File "[...]\pylib\cqlshlib\test\cassconnect.py", line 22, in <module>
>     from .basecase import cql, cqlsh, cqlshlog, TEST_HOST, TEST_PORT, rundir
>   File "[...]\pylib\cqlshlib\test\basecase.py", line 43, in <module>
>     os.symlink(path_to_cqlsh, modulepath)
> AttributeError: 'module' object has no attribute 'symlink'
> ----------------------------------------------------------------------
> Ran 1 test in 0.002s
> FAILED (errors=1)
> {quote}
> The problem comes from the fact tha Windows has no support for symlinks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message