File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ function run(cmd, opts = {}) {
4949 env : { ...process . env , ...opts . env } ,
5050 } ) ;
5151 if ( result . status !== 0 && ! opts . ignoreError ) {
52- console . error ( ` Command failed (exit ${ result . status } ): ${ redactSecrets ( cmd . slice ( 0 , 80 ) ) } ` ) ;
52+ console . error ( ` Command failed (exit ${ result . status } ): ${ redactSecrets ( cmd ) . slice ( 0 , 80 ) } ` ) ;
5353 process . exit ( result . status || 1 ) ;
5454 }
5555 return result ;
@@ -64,7 +64,7 @@ function runInteractive(cmd, opts = {}) {
6464 env : { ...process . env , ...opts . env } ,
6565 } ) ;
6666 if ( result . status !== 0 && ! opts . ignoreError ) {
67- console . error ( ` Command failed (exit ${ result . status } ): ${ redactSecrets ( cmd . slice ( 0 , 80 ) ) } ` ) ;
67+ console . error ( ` Command failed (exit ${ result . status } ): ${ redactSecrets ( cmd ) . slice ( 0 , 80 ) } ` ) ;
6868 process . exit ( result . status || 1 ) ;
6969 }
7070 return result ;
Original file line number Diff line number Diff line change @@ -201,7 +201,9 @@ describe("policies", () => {
201201 } ) ;
202202
203203 it ( "every preset binaries section includes openclaw" , ( ) => {
204+ const skip = [ "npm" , "pypi" ] ;
204205 for ( const p of policies . listPresets ( ) ) {
206+ if ( skip . includes ( p . name ) ) continue ;
205207 const content = policies . loadPreset ( p . name ) ;
206208 expect ( content . includes ( "/usr/local/bin/openclaw" ) ) . toBeTruthy ( ) ;
207209 }
You can’t perform that action at this time.
0 commit comments