Opened 13 years ago

Closed 13 years ago

#178 closed defect (fixed)

OSError from foolscap.test.test_appserver.RunCommand.test_run on Windows

Reported by: davidsarah Owned by:
Priority: major Milestone: 0.6.2
Component: unknown Version: 0.6.1
Keywords: flappclient Cc:

Description

The following error occurs when running the test suite on Windows (XP SP3 32-bit on VirtualBox, in case that matters):

[ERROR]
Traceback (most recent call last):
Failure: exceptions.OSError: (2, 'CreateProcess', 'The system cannot find the file specified.')

foolscap.test.test_appserver.RunCommand.test_run

The stack trace here seems to be truncated, I'll try to get a more complete trace. It seems to be trying to run flappclient when it fails.

Change History (3)

comment:1 Changed 13 years ago by Brian Warner

Milestone: undecided0.6.2

comment:2 Changed 13 years ago by Brian Warner

Oh, I think I get it: that test is setting up a flappserver to run "cat foo.txt" upon request, then it triggers the command a couple of times. It also uses "dd of=bar.txt" to test stdin handling. I bet it's those two commands that aren't working on windows.

I suppose one replacement could be a pair of python programs in foolscap/test/ that behave similarly to cat and dd, then change the command specification to use sys.executable and a fully-qualified path to those files.

comment:3 Changed 13 years ago by Brian Warner

Resolution: fixed
Status: newclosed

Should be fixed by [e434371], where I added a helper script that behaves like cat and dd but is written in python.

davidsarah, could you verify? I haven't done anything on the other windows bug (#181), so it's probably still broken.

Note: See TracTickets for help on using tickets.