nosetests won't find my tests on solaris 10 sparc

Showing 1-6 of 6 messages
nosetests won't find my tests on solaris 10 sparc Yoni Tsafir 5/26/11 4:56 AM
I am working on a project that has tests that I run on multiple
platforms.

Every platform find the tests just fine, but in a solaris 10 sparc
machine I'm having a weird problem of nose finding only a very partial
subsets of the tests I need to run.

The only clue I have about this, is that when I run nosetests --
debug=nose.selector I get the following messages:

nose.selector: INFO: /path/to/test/test_something.py is executable;
skipped

chmod -x on the file didn't help.

Any ideas?

Thanks!
Yoni.
Re: [nose-users] nosetests won't find my tests on solaris 10 sparc JP 5/26/11 6:08 AM
You could try the --exe switch, that tells nose that you don't mind it
loading executable files. Does that help?

JP

> --
> You received this message because you are subscribed to the Google Groups "nose-users" group.
> To post to this group, send email to nose-...@googlegroups.com.
> To unsubscribe from this group, send email to nose-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nose-users?hl=en.
>
>

Re: [nose-users] nosetests won't find my tests on solaris 10 sparc Kumar McMillan 5/26/11 8:35 AM
On Thu, May 26, 2011 at 6:56 AM, Yoni Tsafir <yon...@gmail.com> wrote:
> nose.selector: INFO: /path/to/test/test_something.py is executable;
> skipped
>
> chmod -x on the file didn't help.

Well huh.  Could you log into a python shell on the solaris machine
and report back the output of this?  Also, make sure the file is
readable by the executing user.

import os
os.access('/path/to/test/test_something.py', os.X_OK)

if it's True then Nose will skip the file.  If that code returns True
but you know the file is not actually executable then time to file a
bug http://code.google.com/p/python-nose/

>
> Any ideas?
>
> Thanks!
> Yoni.
>
> --
> You received this message because you are subscribed to the Google Groups "nose-users" group.
> To post to this group, send email to nose-...@googlegroups.com.
> To unsubscribe from this group, send email to nose-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nose-users?hl=en.
>
>

Re: nosetests won't find my tests on solaris 10 sparc Yoni Tsafir 5/27/11 12:28 PM
That's the case....
I'll file a bug.

On May 26, 6:35 pm, Kumar McMillan <kumar.mcmil...@gmail.com> wrote:
> On Thu, May 26, 2011 at 6:56 AM, Yoni Tsafir <yoni...@gmail.com> wrote:
> > nose.selector: INFO: /path/to/test/test_something.py is executable;
> > skipped
>
> > chmod -x on the file didn't help.
>
> Well huh.  Could you log into a python shell on the solaris machine
> and report back the output of this?  Also, make sure the file is
> readable by the executing user.
>
> import os
> os.access('/path/to/test/test_something.py', os.X_OK)
>
> if it's True then Nose will skip the file.  If that code returns True
> but you know the file is not actually executable then time to file a
> bughttp://code.google.com/p/python-nose/
Re: nosetests won't find my tests on solaris 10 sparc Yoni Tsafir 5/27/11 12:29 PM
Yep, that helps.
Thank you :)

On May 26, 4:08 pm, jason pellerin <jpelle...@gmail.com> wrote:
> You could try the --exe switch, that tells nose that you don't mind it
> loading executable files. Does that help?
>
> JP
>
>
>
>
>
>
>
Re: [nose-users] Re: nosetests won't find my tests on solaris 10 sparc Kumar McMillan 5/27/11 1:33 PM
On Fri, May 27, 2011 at 2:28 PM, Yoni Tsafir <yon...@gmail.com> wrote:
> That's the case....
> I'll file a bug.

Also, if you could tell us what the python code is to detect
executable files on Solaris then it would increase the chances of
getting the bug fixed by 100% :)