-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove blackbox testing (#1976)
- Loading branch information
1 parent
102faa2
commit a217537
Showing
73 changed files
with
39 additions
and
282,712 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* eslint-disable no-undef */ | ||
import { promisify } from 'util'; | ||
import { exec } from 'child_process'; | ||
const promiseExec = promisify(exec); | ||
|
||
/** | ||
* Execute a command and if any errors occur reject the promise. | ||
* | ||
* @param command | ||
*/ | ||
export async function execCommand( | ||
command: string, | ||
allowStdError = false | ||
): Promise<void> { | ||
try { | ||
const { stderr } = await promiseExec(command); | ||
if (stderr !== '') { | ||
if (!allowStdError) { | ||
return Promise.reject(stderr); | ||
} | ||
// eslint-disable-next-line no-console | ||
console.error(stderr); | ||
} | ||
return Promise.resolve(); | ||
} catch (e: any) { | ||
return Promise.reject(`${e.stack}; Stdout: ${e.stdout}`); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.