mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
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:
@@ -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" |
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
########################################
|
||||
|
||||
Reference in New Issue
Block a user