File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,14 +104,19 @@ def __xpCmdshellTest(self):
104104 pushValue (threadData .disableStdOut )
105105 threadData .disableStdOut = True
106106
107+ logger .info ("testing if xp_cmdshell extended procedure is usable" )
107108 output = self .evalCmd ("echo 1" )
109+
108110 if isNoneValue (output ):
109- errMsg = "it seems that the temporary directory ('%s') used for storing " % self .getRemoteTempPath ()
110- errMsg += "console output at the back-end OS does not have "
111- errMsg += "writing permissions for the DBMS process. You are advised "
112- errMsg += "to manually adjust it with option '--tmp-path' or you won't "
113- errMsg += "be able to retrieve the console output"
111+ errMsg = "it seems that the temporary directory ('%s') used for " % self .getRemoteTempPath ()
112+ errMsg += "storing console output within the back-end file system "
113+ errMsg += "does not have writing permissions for the DBMS process. "
114+ errMsg += "You are advised to manually adjust it with option "
115+ errMsg += "--tmp-path switch or you will not be able to retrieve "
116+ errMsg += "the commands output"
114117 logger .error (errMsg )
118+ else :
119+ logger .info ("xp_cmdshell extended procedure is usable" )
115120
116121 threadData .disableStdOut = popValue ()
117122
You can’t perform that action at this time.
0 commit comments