Author: locilka Date: Wed Mar 5 12:21:38 2008 New Revision: 45206 URL: http://svn.opensuse.org/viewcvs/yast?rev=45206&view=rev Log: - Adjusted and fixed process agent testsuite. Modified: trunk/core/agent-process/testsuite/tests/invalid_paths.err trunk/core/agent-process/testsuite/tests/invalid_values.err trunk/core/agent-process/testsuite/tests/runtest.sh trunk/core/package/yast2-core.changes Modified: trunk/core/agent-process/testsuite/tests/invalid_paths.err URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/agent-process/testsuite/test... ============================================================================== --- trunk/core/agent-process/testsuite/tests/invalid_paths.err (original) +++ trunk/core/agent-process/testsuite/tests/invalid_paths.err Wed Mar 5 12:21:38 2008 @@ -1,6 +1,6 @@ -[agent-process] ProcessAgent.cc(Dir):80 Wrong path '.non_existing_path' in Dir(). -[agent-process] ProcessAgent.cc(Read):107 ID of the process is missing -[agent-process] ProcessAgent.cc(Write):243 Unsupported path in Write(): .non_existing_path -[agent-process] ProcessAgent.cc(Execute):460 ID of the process is missing -[agent-process] ProcessAgent.cc(Read):119 Process '123' not found -[agent-process] ProcessAgent.cc(Write):261 Process '123' not found +[agent-process] ProcessAgent.cc(Dir) Wrong path '.non_existing_path' in Dir(). +[agent-process] ProcessAgent.cc(Read) ID of the process is missing +[agent-process] ProcessAgent.cc(Write) Unsupported path in Write(): .non_existing_path +[agent-process] ProcessAgent.cc(Execute) ID of the process is missing +[agent-process] ProcessAgent.cc(Read) Process '123' not found +[agent-process] ProcessAgent.cc(Write) Process '123' not found Modified: trunk/core/agent-process/testsuite/tests/invalid_values.err URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/agent-process/testsuite/test... ============================================================================== --- trunk/core/agent-process/testsuite/tests/invalid_values.err (original) +++ trunk/core/agent-process/testsuite/tests/invalid_values.err Wed Mar 5 12:21:38 2008 @@ -1,2 +1,2 @@ -[agent-process] ProcessAgent.cc(Execute):348 tty option '"invalid"' is not a boolean value -[agent-process] ProcessAgent.cc(Execute):348 tty option '"invalid"' is not a boolean value +[agent-process] ProcessAgent.cc(Execute) tty option '"invalid"' is not a boolean value +[agent-process] ProcessAgent.cc(Execute) tty option '"invalid"' is not a boolean value Modified: trunk/core/agent-process/testsuite/tests/runtest.sh URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/agent-process/testsuite/test... ============================================================================== --- trunk/core/agent-process/testsuite/tests/runtest.sh (original) +++ trunk/core/agent-process/testsuite/tests/runtest.sh Wed Mar 5 12:21:38 2008 @@ -7,4 +7,10 @@ export Y2DEBUGSHELL=1 # ignore also milestones (they are not constant and logged by liby2util - cannot be simply turned off) -(./run_ag_process -l - $1 >$2) 2>&1 | fgrep -v -e " <0> " -e " <1> " | grep -v "^$" | sed 's/^....-..-.. ..:..:.. [^)]*) //g' > $3 +# ignore also line numbers (any change in the core might make the testsuite fail) +(./run_ag_process -l - $1 >$2) 2>&1 | \ + fgrep -v -e " <0> " -e " <1> " | \ + grep -v "^$" | \ + sed 's/^....-..-.. ..:..:.. [^)]*) //g' | \ + sed 's/^([[^]]+] [^(]+([^)]+)):[0-9]+ (.*)/\1 \2/g' \ + > $3 Modified: trunk/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?r... ============================================================================== --- trunk/core/package/yast2-core.changes (original) +++ trunk/core/package/yast2-core.changes Wed Mar 5 12:21:38 2008 @@ -3,6 +3,7 @@ - Extended .process agent with 'buffer_empty' function that returns whether the stdout buffer is empty (needed for backup). +- Adjusted and fixed process agent testsuite. - 2.16.40 ------------------------------------------------------------------- -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org