[LU-2566] test: sanity-gss: need to execute test-framework.sh before invoke error() at line 21 Created: 03/Jan/13  Updated: 17/Jan/13  Resolved: 17/Jan/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.3.0, Lustre 2.4.0
Fix Version/s: Lustre 2.4.0

Type: Bug Priority: Blocker
Reporter: Jay Lan (Inactive) Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: LB

Severity: 3
Rank (Obsolete): 5997

 Description   

I am testing sanity-gss.sh on sles11sp2. It failed correctly and tried to print an error message at line 21:
error "unsupported kernel (gss only works with 2.6.x)" ;;

The problem is that error() is defined in test-framework.sh, which has not been executed yet. So, instead of proper error message I got:
error: Command not found



 Comments   
Comment by Peter Jones [ 03/Jan/13 ]

Bob

Can you please look into this one?

Thanks

Peter

Comment by Bob Glossman (Inactive) [ 03/Jan/13 ]

This one looks easy enough. Just need to move the kernel version test down a few lines in the test script to after all the simple init takes place. Then the error() function will be defined and available before it's used.

Will work up a simple patch to do this.

Comment by Bob Glossman (Inactive) [ 03/Jan/13 ]

http://review.whamcloud.com/4947

Comment by Andreas Dilger [ 17/Jan/13 ]

Patch has landed for 2.4.0.

Generated at Sat Feb 10 01:26:17 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.