.. | .. |
---|
1 | 1 | #!/bin/sh |
---|
| 2 | +# SPDX-License-Identifier: GPL-2.0+ |
---|
2 | 3 | # |
---|
3 | 4 | # Invoke a text editor on all console.log files for all runs with diagnostics, |
---|
4 | 5 | # that is, on all such files having a console.log.diags counterpart. |
---|
.. | .. |
---|
10 | 11 | # |
---|
11 | 12 | # The "directory" above should end with the date/time directory, for example, |
---|
12 | 13 | # "tools/testing/selftests/rcutorture/res/2018.02.25-14:27:27". |
---|
| 14 | +# Returns error status reflecting the success (or not) of the specified run. |
---|
| 15 | +# |
---|
| 16 | +# Copyright (C) IBM Corporation, 2018 |
---|
| 17 | +# |
---|
| 18 | +# Author: Paul E. McKenney <paulmck@linux.ibm.com> |
---|
13 | 19 | |
---|
14 | 20 | rundir="${1}" |
---|
15 | 21 | if test -z "$rundir" -o ! -d "$rundir" |
---|
16 | 22 | then |
---|
| 23 | + echo Directory "$rundir" not found. |
---|
17 | 24 | echo Usage: $0 directory |
---|
| 25 | + exit 1 |
---|
18 | 26 | fi |
---|
19 | 27 | editor=${EDITOR-vi} |
---|
20 | 28 | |
---|
.. | .. |
---|
51 | 59 | if test -n "$files" |
---|
52 | 60 | then |
---|
53 | 61 | $editor $files |
---|
| 62 | + exit 1 |
---|
54 | 63 | else |
---|
55 | 64 | echo No errors in console logs. |
---|
| 65 | + exit 0 |
---|
56 | 66 | fi |
---|