diff --git a/run/logging-manual/test/system.test.js b/run/logging-manual/test/system.test.js index 942b73614f..42990f5f49 100644 --- a/run/logging-manual/test/system.test.js +++ b/run/logging-manual/test/system.test.js @@ -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!');