Skip to content

Conversation

@Bastian-Krause
Copy link
Member

Description
When concatenating commands with && or using set -e, a keyboard interrupt should lead to no further commands being executed.

To allow this, rather exit with 1 than 0 on keyboard interrupt.

Checklist

  • Documentation for the feature
  • Tests for the feature
  • CHANGES.rst has been updated
  • PR has been tested

Fixes #155

When concatenating commands with '&&' or using 'set -e', a keyboard
interrupt should lead to no further commands being executed.

To allow this, rather exit with 1 than 0 on keyboard interrupt.

Fixes: ef40183 ("remote/client: catch common errors and show a help message")
Signed-off-by: Bastian Krause <bst@pengutronix.de>
@Bastian-Krause Bastian-Krause added fix pick to stable Needs a pick to the latest stable branch labels Oct 19, 2021
@codecov
Copy link

codecov bot commented Oct 19, 2021

Codecov Report

Merging #855 (fc277de) into master (dc8392a) will not change coverage.
The diff coverage is 0.0%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #855   +/-   ##
======================================
  Coverage    56.9%   56.9%           
======================================
  Files         145     145           
  Lines       10854   10854           
======================================
  Hits         6179    6179           
  Misses       4675    4675           
Impacted Files Coverage Δ
labgrid/remote/client.py 44.6% <0.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc8392a...fc277de. Read the comment docs.

@Emantor Emantor merged commit 36bc654 into labgrid-project:master Oct 20, 2021
@Bastian-Krause Bastian-Krause deleted the bst/client-exit-code branch January 15, 2022 12:32
@Bastian-Krause Bastian-Krause removed the pick to stable Needs a pick to the latest stable branch label Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants