This repository was archived by the owner on May 20, 2024. It is now read-only.
File tree 2 files changed +39
-22
lines changed
2 files changed +39
-22
lines changed Original file line number Diff line number Diff line change 11
11
12
12
# =============================================================================
13
13
14
- # perror_i must accept at least one argument
15
- set +e
16
- ( perror_i_psst 2> /dev/null )
17
- [ $? = 127 ] || test_fail_psst $LINENO
18
- set -e
14
+ (
15
+ # shellcheck disable=SC2030 disable=SC2031
16
+ export COLUMNS=30
19
17
20
- # Argument must not be empty
21
- set +e
22
- ( perror_i_psst " " 2> /dev/null )
23
- [ $? = 127 ] || test_fail_psst $LINENO
24
- set -e
18
+ # shellcheck source=../../../lib/psst/basic.inc.sh
19
+ . " $INCLUDE_PSST /basic.inc.sh"
20
+
21
+ # perror_i must accept at least one argument
22
+ set +e
23
+ ( perror_i_psst 2> /dev/null )
24
+ [ $? = 127 ] || test_fail_psst $LINENO
25
+ set -e
26
+
27
+ # Argument must not be empty
28
+ set +e
29
+ ( perror_i_psst " " 2> /dev/null )
30
+ [ $? = 127 ] || test_fail_psst $LINENO
31
+ set -e
32
+ )
25
33
26
34
27
35
# Must respect columns setting
Original file line number Diff line number Diff line change 9
9
INCLUDE_PSST=" $cmdBase /../../../lib/psst"
10
10
fi
11
11
12
+
12
13
# =============================================================================
13
14
14
- # print_i must accept at least one argument
15
- set +e
16
- ( print_i_psst 2> /dev/null )
17
- [ $? = 127 ] || test_fail_psst $LINENO
18
- set -e
15
+ (
16
+ # shellcheck disable=SC2030 disable=SC2031
17
+ export COLUMNS=30
19
18
20
- # Argument must not be empty
21
- set +e
22
- ( print_i_psst " " 2> /dev/null )
23
- [ $? = 127 ] || test_fail_psst $LINENO
24
- set -e
19
+ # shellcheck source=../../../lib/psst/basic.inc.sh
20
+ . " $INCLUDE_PSST /basic.inc.sh"
21
+
22
+ # print_i must accept at least one argument
23
+ set +e
24
+ ( print_i_psst 2> /dev/null )
25
+ [ $? = 127 ] || test_fail_psst $LINENO
26
+ set -e
27
+
28
+ # Argument must not be empty
29
+ set +e
30
+ ( print_i_psst " " 2> /dev/null )
31
+ [ $? = 127 ] || test_fail_psst $LINENO
32
+ set -e
33
+ )
25
34
26
35
27
36
# Must respect columns setting
57
66
. " $INCLUDE_PSST /basic.inc.sh"
58
67
59
68
tmpDir=" /tmp"
60
- tmpdir_psst " tmpDir"
69
+ tmpdir_psst tmpDir
61
70
62
71
printDst=" $tmpDir /print_psst"
63
72
print_psst " This is a very long test sentence, that should be split" \
78
87
. " $INCLUDE_PSST /basic.inc.sh"
79
88
80
89
tmpDir=" /tmp"
81
- tmpdir_psst " tmpDir"
90
+ tmpdir_psst tmpDir
82
91
83
92
printDst=" $tmpDir /print_psst"
84
93
print_i_psst 5 " This is a very long test sentence, that should be" \
You can’t perform that action at this time.
0 commit comments