mirror of
https://github.com/sasjs/core.git
synced 2026-01-15 12:30:06 +00:00
fix: updating broken test in ms_runstp.test.sas
This commit is contained in:
@@ -17,6 +17,7 @@ data _null_;
|
|||||||
file stpcode;
|
file stpcode;
|
||||||
put '%put hello world;';
|
put '%put hello world;';
|
||||||
put '%put _all_;';
|
put '%put _all_;';
|
||||||
|
put 'data _null_; file _webout; put "runstptest";run;';
|
||||||
run;
|
run;
|
||||||
|
|
||||||
options mprint;
|
options mprint;
|
||||||
@@ -34,25 +35,29 @@ options mprint;
|
|||||||
)
|
)
|
||||||
%mp_assertscope(COMPARE)
|
%mp_assertscope(COMPARE)
|
||||||
|
|
||||||
libname webeen json fileref=weboot;
|
%let test1=0;
|
||||||
|
%let test2=0;
|
||||||
data _null_;
|
data _null_;
|
||||||
infile weboot;
|
infile weboot;
|
||||||
input;
|
input;
|
||||||
putlog _infile_;
|
if _n_=1 then call symputx('test1',_infile_);
|
||||||
|
if _n_=3 then do;
|
||||||
|
call symputx('test2',substr(_infile_,1,30));
|
||||||
|
putlog "SASJS_LOGS_SEPARATOR_xxx"; /* this marker affects the CLI parser */
|
||||||
|
end;
|
||||||
|
else putlog _infile_;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
%let test1=0;
|
|
||||||
data work.log;
|
|
||||||
set webeen.log;
|
|
||||||
put (_all_)(=);
|
|
||||||
if _n_>10 then call symputx('test1',1);
|
|
||||||
run;
|
|
||||||
|
|
||||||
%mp_assert(
|
%mp_assert(
|
||||||
iftrue=("&test1"="1"),
|
iftrue=("&test1"="runstptest"),
|
||||||
desc=Checking log was returned,
|
desc=Checking webout was created,
|
||||||
outds=work.test_results
|
outds=work.test_results
|
||||||
)
|
)
|
||||||
|
|
||||||
|
%mp_assert(
|
||||||
|
iftrue=("&test2"="SASJS_LOGS_SEPARATOR_163ee17b6"),
|
||||||
|
desc=Checking debug was enabled,
|
||||||
|
outds=work.test_results
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user