diff options
-rwxr-xr-x | tests/ts/last/ipv6 | 2 | ||||
-rwxr-xr-x | tests/ts/last/last | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/ts/last/ipv6 b/tests/ts/last/ipv6 index 63a786753..e3e7dd1b3 100755 --- a/tests/ts/last/ipv6 +++ b/tests/ts/last/ipv6 @@ -19,6 +19,8 @@ TS_DESC="last ipv6" ts_init "$*" ts_check_test_command "$TS_CMD_LAST" +$TS_CMD_LAST --version 2>&1 | grep -q "invalid option" \ + && ts_skip "deprecated last" WTMP_FILE=${TS_OUTDIR}/ipv6-input rm -f $WTMP_FILE diff --git a/tests/ts/last/last b/tests/ts/last/last index 8ed3102ee..241915a7f 100755 --- a/tests/ts/last/last +++ b/tests/ts/last/last @@ -19,6 +19,8 @@ TS_DESC="last" ts_init "$*" ts_check_test_command "$TS_CMD_LAST" +$TS_CMD_LAST --version 2>&1 | grep -q "invalid option" \ + && ts_skip "deprecated last" WTMP_FILE=${TS_OUTDIR}/wtmp rm -f $WTMP_FILE |