Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
unit: manifest entry
id: has_socket_can_fd
_name: CAN FD capable devices
value-type: bool
11 changes: 9 additions & 2 deletions providers/base/units/socketcan/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ plugin: shell
user: root
estimated_duration: 2.0
flags: also-after-suspend
imports: from com.canonical.plainbox import manifest
requires:
manifest.has_socket_can_fd == 'True'
command:
BASH_XTRACEFD=1
set -ex
Expand Down Expand Up @@ -141,7 +144,9 @@ user: root
estimated_duration: 2.0
flags: also-after-suspend
imports: from com.canonical.plainbox import manifest
requires: manifest.socket_can_echo_server_running == 'False'
requires:
manifest.socket_can_echo_server_running == 'False'
manifest.has_socket_can_fd == 'True'
command:
BASH_XTRACEFD=1
set -ex
Expand Down Expand Up @@ -224,7 +229,9 @@ user: root
estimated_duration: 5.0
flags: also-after-suspend
imports: from com.canonical.plainbox import manifest
requires: manifest.socket_can_echo_server_running == 'True'
requires:
manifest.socket_can_echo_server_running == 'True'
manifest.has_socket_can_fd == 'True'
command:
BASH_XTRACEFD=1
set -ex
Expand Down
5 changes: 5 additions & 0 deletions providers/base/units/socketcan/manifest.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ id: socket_can_echo_server_running
_prompt: Is the device connected to the following?:
_name: A SocketCAN Echo Server
value-type: bool

unit: manifest entry
id: has_socket_can_fd
_name: CAN FD capable devices
value-type: bool