File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ # Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
3
+ # $COPYRIGHT$
4
+ #
5
+ # Additional copyrights may follow
6
+ #
7
+ # $HEADER$
2
8
3
9
retval=-1
10
+ argv=$*
4
11
5
- progname=" ` basename $* ` "
12
+ set $*
13
+ while shift ; do
14
+ if test " $1 " = " --test-name" ; then
15
+ progname=` basename $2 `
16
+ break
17
+ fi
18
+ done
6
19
echo " --> Testing $progname "
7
20
8
21
for threads in 1 2 4 5 8 ; do
9
- $* $threads
22
+ $argv $threads
10
23
result=$?
11
24
if test " $result " = " 0" ; then
12
25
echo " - $threads threads: Passed"
13
- if test " $retval " = " -1 " ; then
26
+ if test $retval -eq -1 ; then
14
27
retval=0
15
28
fi
16
29
elif test " $result " = " 77" ; then
17
30
echo " - $threads threads: Skipped"
18
- if test " $retval " = " -1 " ; then
31
+ if test $retval -eq -1 ; then
19
32
retval=77
20
33
fi
21
34
else
22
35
echo " - $threads threads: Failed"
23
- retval=" $result "
36
+ retval=$result
24
37
fi
25
38
done
26
39
You can’t perform that action at this time.
0 commit comments