Mailinglist Archive: yast-devel (26 mails)

< Previous Next >
Re: [yast-devel] [PATCH] yast2-core: agent-process: fix stdout/stderr test cases
  • From: Lukas Ocilka <lukas.ocilka@xxxxxxx>
  • Date: Thu, 24 Nov 2011 10:43:41 +0100
  • Message-id: <4ECE11CD.9020501@suse.cz>
On 11/23/2011 10:06 PM, Alexander Graf wrote:
When running the stdout and stderr test cases while building yast2-core
for ARM, we execute processes slower than the yast developer machines
apparently :).

The test cases expect data to flow between the ycp code and cat within
50 ms, but we can't guarantee that. In fact, it basically never worked
in my tests.

The real fix would probably to listen on the socket and see if new data
comes in and only then read from there, but I'm not sure it's worth it
for a test case. Instead, we can just increase the sleeps to something
really high so we definitely catch all the shiny new data on the other
end of the pipe.

What about rather checking for architecture and raise the sleep time only in case of ARM detected (if possible)? I'd prefer not changing it for the rest of architectures.

Bye
Lukas

--

Lukas Ocilka, Appliances Department
SUSE LINUX s.r.o., Praha
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
References