Python: Adjust expectations for system command executions

I mostly did this to show my reviewers that the tests actually run and do
something ;)
This commit is contained in:
Rasmus Wriedt Larsen
2020-09-24 18:24:03 +02:00
parent 060720aae7
commit c440fd0c09
2 changed files with 4 additions and 8 deletions

View File

@@ -1,4 +0,0 @@
| SystemCommandExecution.py:16:10:16:21 | ControlFlowNode for Str | Fixed false negative:SystemCommandExecution_getCommand="cmd1; cmd2" |
| SystemCommandExecution.py:17:11:17:22 | ControlFlowNode for Str | Fixed false negative:SystemCommandExecution_getCommand="cmd1; cmd2" |
| SystemCommandExecution.py:27:11:27:22 | ControlFlowNode for Str | Fixed false negative:SystemCommandExecution_getCommand="cmd1; cmd2" |
| SystemCommandExecution.py:28:12:28:23 | ControlFlowNode for Str | Fixed false negative:SystemCommandExecution_getCommand="cmd1; cmd2" |

View File

@@ -13,8 +13,8 @@ import os
# can't use a string literal with spaces in the tags of an InlineExpectationsTest, so using variables :|
os.popen("cmd1; cmd2") # $f-:SystemCommandExecution_getCommand="cmd1; cmd2"
os.system("cmd1; cmd2") # $f-:SystemCommandExecution_getCommand="cmd1; cmd2"
os.popen("cmd1; cmd2") # $SystemCommandExecution_getCommand="cmd1; cmd2"
os.system("cmd1; cmd2") # $SystemCommandExecution_getCommand="cmd1; cmd2"
def os_members():
@@ -24,8 +24,8 @@ def os_members():
# :|
from os import popen, system
popen("cmd1; cmd2") # $f-:SystemCommandExecution_getCommand="cmd1; cmd2"
system("cmd1; cmd2") # $f-:SystemCommandExecution_getCommand="cmd1; cmd2"
popen("cmd1; cmd2") # $SystemCommandExecution_getCommand="cmd1; cmd2"
system("cmd1; cmd2") # $SystemCommandExecution_getCommand="cmd1; cmd2"
########################################