Project

General

Profile

Actions

action #123445

closed

[tools] ShellCheck test in os-autoinst fails in CI ( on Tumbleweed )

Added by osukup almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2023-01-20
Due date:
% Done:

0%

Estimated time:

Description

In tumbleweed was released new version of ShellCheck catching new problems in scripts leading to fail in our CI:

test 4
    Start 4: test-local-shellcheck
4: Test command: /opt/tools/check-shellcheck "/usr/bin/shellcheck"
4: Working Directory: /opt
4: Test timeout computed to be: 10000000
4: 
4: In tools/container_run_ci line 33:
4:     -h | --help ) usage 0; shift ;;
4:                            ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
4: 
4: 
4: In tools/invoke-tests line 28:
4:     -h | --help               ) usage;                     shift   ;;
4:                                                            ^------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
4: 
4: 
4: In tools/tidy line 37:
4:     -h | --help ) usage; shift ;;
4:                          ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
4: 
4: For more information:
4:   https://www.shellcheck.net/wiki/SC2317 -- Command appears to be unreachable...
4/7 Test #4: test-local-shellcheck ............***Failed    0.18 sec

Acceptance criteria

AC1: CI passes

Actions #1

Updated by osukup almost 2 years ago

  • Description updated (diff)
Actions #2

Updated by osukup almost 2 years ago

  • Target version set to Ready
Actions #3

Updated by jbaier_cz almost 2 years ago

Seems correct, there is indeed an exit in the usage function, so the shift will never be reached. That is a nice new rule.

Actions #4

Updated by tinita almost 2 years ago

  • Category set to Regressions/Crashes
  • Status changed from New to In Progress
  • Assignee set to tinita
Actions #5

Updated by tinita almost 2 years ago

  • Status changed from In Progress to Feedback
Actions #6

Updated by tinita almost 2 years ago

  • Status changed from Feedback to Resolved

merged

Actions

Also available in: Atom PDF