[yast-devel] testsuite in the hudson server
Hi I am trying to get the testsuite to run in the hudson server, I build in a chroot, and I got this error: Running tty... The diff follows... --- tests/tty.err 2009-01-17 19:16:54.000000000 +0000 +++ tmp.err.tty 2009-02-12 13:42:54.000000000 +0000 @@ -0,0 +1,10 @@ +[liby2util] ExternalProgram.cc(start_program) openpty failed +[agent-process] ProcessAgent.cc(Execute) Program NOT started! +[Interpreter] tests/tty.ycp:7 Argument (id) to Read(...) is nil +[Interpreter] tests/tty.ycp:9 Argument (id) to Read(...) is nil +[Interpreter] tests/tty.ycp:11 Argument (out) to regexpmatch(...) is nil +[liby2util] ExternalProgram.cc(start_program) openpty failed +[agent-process] ProcessAgent.cc(Execute) Program NOT started! +[Interpreter] tests/tty.ycp:18 Argument (id) to Read(...) is nil +[Interpreter] tests/tty.ycp:20 Argument (id) to Read(...) is nil +[Interpreter] tests/tty.ycp:22 Argument (out) to regexpmatch(...) is nil FAIL: Wrong stderr for tty See the diff above. So I tried mount -t devpts -o rw,gid=5,mode=620 none /dev/pts Now I get: The diff follows... --- tests/tty.out 2009-01-17 19:16:54.000000000 +0000 +++ tmp.out.tty 2009-02-12 16:00:56.000000000 +0000 @@ -1,5 +1,5 @@ -(true) -(true) +(false) +(false) (false) (false) (false) FAIL: Wrong stdout for tty See the diff above. Any ideas? -- Duncan Mac-Vicar P. - Engineering Manager, YaST SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Hi, Duncan Mac-Vicar Prett wrote: [...]
The diff follows...
--- tests/tty.out 2009-01-17 19:16:54.000000000 +0000 +++ tmp.out.tty 2009-02-12 16:00:56.000000000 +0000 @@ -1,5 +1,5 @@ -(true) -(true) +(false) +(false) (false) (false) (false)
The first two tests check the output from "/usr/bin/tty" command to verify that a terminal was really opened: { integer id = (integer)(SCR::Execute(.start, "/usr/bin/tty", $[ "tty" : true ])); while(SCR::Read(.running, id) == true) sleep(20); string out = (string)SCR::Read(.read, id); return regexpmatch(out, "^/dev/pts/[0-9]*\r\n$"); } What does the command print in the build chroot? -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Ladislav Slezak wrote:
{ integer id = (integer)(SCR::Execute(.start, "/usr/bin/tty", $[ "tty" : true ])); while(SCR::Read(.running, id) == true) sleep(20); string out = (string)SCR::Read(.read, id); return regexpmatch(out, "^/dev/pts/[0-9]*\r\n$"); }
Can I execute that with the in-source compiled YaST? remember I don't have it installed in the chroot, as I am trying to build it. -- Duncan Mac-Vicar P. - Engineering Manager, YaST SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Duncan Mac-Vicar Prett wrote:
Ladislav Slezak wrote:
{ integer id = (integer)(SCR::Execute(.start, "/usr/bin/tty", $[ "tty" : true ])); while(SCR::Read(.running, id) == true) sleep(20); string out = (string)SCR::Read(.read, id); return regexpmatch(out, "^/dev/pts/[0-9]*\r\n$"); }
Can I execute that with the in-source compiled YaST? remember I don't have it installed in the chroot, as I am trying to build it.
Yes, do 'make check' in core/agent-process directory. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (2)
-
Duncan Mac-Vicar Prett
-
Ladislav Slezak