How to disable automatic command execution

Asked by Javier Collado

Hello,

According to LP#187934 there is a way to decide when a command should be run automatically and when it shouldn't.

I'm working on a test case that follows exactly one of the examples in the bug description "turning on the power saving of the monitor" so this use case must be covered by the code already. However, I don't know what must be added to the test case description to disable automatic command execution.

Anyone can provide some help on this?

Best regards,
    Javier

Question information

Language:
English Edit question
Status:
Solved
For:
Checkbox Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Tardif
Solved:
Last query:
Last reply:
Revision history for this message
Best Marc Tardif (cr3) said :
#1

The test definition for a manual test should contain:

  plugin: manual

And, the test definition for an automatic (shell) test should contain:

  plugin: shell

If the plugin is set to "manual", the command specified in the definition should not be run automatically.

Revision history for this message
Javier Collado (javier.collado) said :
#2

Thanks, Marc, now it seems to me that the answer was pretty obvious.

Revision history for this message
Javier Collado (javier.collado) said :
#3

Thanks Marc Tardif, that solved my question.