* [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e
@ 2009-08-26 15:20 Geert Uytterhoeven
2009-08-26 19:50 ` Mike Frysinger
0 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2009-08-26 15:20 UTC (permalink / raw)
To: Linux Test Project
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
---
Is there any better way to handle this??
testcases/commands/su/su01_s1 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/testcases/commands/su/su01_s1 b/testcases/commands/su/su01_s1
index 2fba82b..b676f84 100755
--- a/testcases/commands/su/su01_s1
+++ b/testcases/commands/su/su01_s1
@@ -406,7 +406,7 @@ if { ($displayed_error==1) && ($exit_code!=0) && ($pid>0) } {
# Become root and expire $USER1 password
# Skip this if Red Hat; -e option not supported.
-if { $distro != "redhat" && $distro != "redhat-linux" } {
+if { $distro != "redhat" && $distro != "redhat-linux" && $distro != "yellowdog-linux" } {
if { $test_one_passed==1} {
send_user "TEST: su to user1 with the user1 password expired.\n"
--
1.6.2.4
With kind regards,
Geert Uytterhoeven
Software Architect
Techsoft Centre
Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e
2009-08-26 15:20 [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e Geert Uytterhoeven
@ 2009-08-26 19:50 ` Mike Frysinger
2009-08-27 9:49 ` Geert Uytterhoeven
0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2009-08-26 19:50 UTC (permalink / raw)
To: ltp-list; +Cc: Geert Uytterhoeven
[-- Attachment #1.1: Type: Text/Plain, Size: 248 bytes --]
On Wednesday 26 August 2009 11:20:44 Geert Uytterhoeven wrote:
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
> ---
> Is there any better way to handle this??
change it to:
if passwd -h | grep -q -e '--expire\>' ; then
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 355 bytes --]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e
2009-08-26 19:50 ` Mike Frysinger
@ 2009-08-27 9:49 ` Geert Uytterhoeven
2009-08-27 10:06 ` Mike Frysinger
0 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2009-08-27 9:49 UTC (permalink / raw)
To: Mike Frysinger; +Cc: ltp-list
On Wed, 26 Aug 2009, Mike Frysinger wrote:
> On Wednesday 26 August 2009 11:20:44 Geert Uytterhoeven wrote:
> > Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
> > ---
> > Is there any better way to handle this??
>
> change it to:
> if passwd -h | grep -q -e '--expire\>' ; then
^
2>&1
Next question: Does Google Translator do bash => expect? ;-)
With kind regards,
Geert Uytterhoeven
Software Architect
Techsoft Centre
Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e
2009-08-27 9:49 ` Geert Uytterhoeven
@ 2009-08-27 10:06 ` Mike Frysinger
2009-08-27 11:12 ` Geert Uytterhoeven
0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2009-08-27 10:06 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: ltp-list
[-- Attachment #1.1: Type: Text/Plain, Size: 583 bytes --]
On Thursday 27 August 2009 05:49:49 Geert Uytterhoeven wrote:
> On Wed, 26 Aug 2009, Mike Frysinger wrote:
> > On Wednesday 26 August 2009 11:20:44 Geert Uytterhoeven wrote:
> > > Is there any better way to handle this??
> >
> > change it to:
> > if passwd -h | grep -q -e '--expire\>' ; then
> ^
> 2>&1
yeah, some utils are pretty stupid and send help output to stderr. i'll send
a patch to the shadow guys.
> Next question: Does Google Translator do bash => expect? ;-)
not sure what you mean ... program options are not translated
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 355 bytes --]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e
2009-08-27 10:06 ` Mike Frysinger
@ 2009-08-27 11:12 ` Geert Uytterhoeven
2009-08-27 11:37 ` Mike Frysinger
0 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2009-08-27 11:12 UTC (permalink / raw)
To: Mike Frysinger; +Cc: ltp-list
On Thu, 27 Aug 2009, Mike Frysinger wrote:
> On Thursday 27 August 2009 05:49:49 Geert Uytterhoeven wrote:
> > On Wed, 26 Aug 2009, Mike Frysinger wrote:
> > > On Wednesday 26 August 2009 11:20:44 Geert Uytterhoeven wrote:
> > > > Is there any better way to handle this??
> > >
> > > change it to:
> > > if passwd -h | grep -q -e '--expire\>' ; then
> > ^
> > 2>&1
>
> yeah, some utils are pretty stupid and send help output to stderr. i'll send
> a patch to the shadow guys.
>
> > Next question: Does Google Translator do bash => expect? ;-)
>
> not sure what you mean ... program options are not translated
The script that does the test is written in expect.
With kind regards,
Geert Uytterhoeven
Software Architect
Techsoft Centre
Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e
2009-08-27 11:12 ` Geert Uytterhoeven
@ 2009-08-27 11:37 ` Mike Frysinger
2009-08-28 8:13 ` Garrett Cooper
0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2009-08-27 11:37 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: ltp-list
[-- Attachment #1.1: Type: Text/Plain, Size: 813 bytes --]
On Thursday 27 August 2009 07:12:01 Geert Uytterhoeven wrote:
> On Thu, 27 Aug 2009, Mike Frysinger wrote:
> > On Thursday 27 August 2009 05:49:49 Geert Uytterhoeven wrote:
> > > Next question: Does Google Translator do bash => expect? ;-)
> >
> > not sure what you mean ... program options are not translated
>
> The script that does the test is written in expect.
not sure whether you want to convert it all to expect (TCL) or you actually
meant "expect => bash". while converting POSIX shell to TCL is pretty easy,
going the other way is largely infeasible. expect does the right thing with
ttys and sessions and such which are either a huge hack under POSIX shell or
downright impossible.
in either case, i'm not interested in converting anything as i dont use these
tests ;)
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 355 bytes --]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e
2009-08-27 11:37 ` Mike Frysinger
@ 2009-08-28 8:13 ` Garrett Cooper
0 siblings, 0 replies; 7+ messages in thread
From: Garrett Cooper @ 2009-08-28 8:13 UTC (permalink / raw)
To: Mike Frysinger; +Cc: Geert Uytterhoeven, ltp-list
On Thu, Aug 27, 2009 at 4:37 AM, Mike Frysinger<vapier@gentoo.org> wrote:
> On Thursday 27 August 2009 07:12:01 Geert Uytterhoeven wrote:
>> On Thu, 27 Aug 2009, Mike Frysinger wrote:
>> > On Thursday 27 August 2009 05:49:49 Geert Uytterhoeven wrote:
>> > > Next question: Does Google Translator do bash => expect? ;-)
>> >
>> > not sure what you mean ... program options are not translated
>>
>> The script that does the test is written in expect.
>
> not sure whether you want to convert it all to expect (TCL) or you actually
> meant "expect => bash". while converting POSIX shell to TCL is pretty easy,
> going the other way is largely infeasible. expect does the right thing with
> ttys and sessions and such which are either a huge hack under POSIX shell or
> downright impossible.
>
> in either case, i'm not interested in converting anything as i dont use these
> tests ;)
Unless you plan on writing an application in C which will do the
work of reading from stdout / stderr and writing to stdin, I would
call it a moot point. Even then, I would think it unwise to do that...
HTH,
-Garrett
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-08-28 8:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-26 15:20 [LTP] [PATCH] su01: Yellow Dog Linux doesn't support passwd -e Geert Uytterhoeven
2009-08-26 19:50 ` Mike Frysinger
2009-08-27 9:49 ` Geert Uytterhoeven
2009-08-27 10:06 ` Mike Frysinger
2009-08-27 11:12 ` Geert Uytterhoeven
2009-08-27 11:37 ` Mike Frysinger
2009-08-28 8:13 ` Garrett Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox