Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions run/logging-manual/test/system.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ async function runShellCmd(cmd, opts = {}) {
try {
console.log('Running command:', cmd);
const result = await exec(cmd, opts);

// Ensure that `stdout` isn't empty
if (!result.stdout) {
throw new Error(result.stderr);
}

return result;
} catch (err) {
console.log('Shell command failed!');
Expand Down