Skip to content

Commit

Permalink
✅ Added stderr redirect
Browse files Browse the repository at this point in the history
Streaminator now always does the right thing with sending error messages to stderr. This was breaking module_generator’s self tests.
  • Loading branch information
mkarlesky committed May 1, 2024
1 parent 838a27c commit 3f97319
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/module_generator/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def assert_file_not_exist(path)
end

def assert_test_run_contains(expected)
retval = `../../../bin/ceedling clobber test:all`
retval = `../../../bin/ceedling clobber test:all 2>&1`
if (retval.include? expected)
puts "Testing included `#{expected}`"
else
Expand All @@ -61,7 +61,7 @@ def assert_test_run_contains(expected)
end

def call_create(cmd)
retval = `../../../bin/ceedling module:create[#{cmd}]`
retval = `../../../bin/ceedling module:create[#{cmd}] 2>&1`
if retval.match? /Error/i
raise "Received error when creating:\n#{retval}"
else
Expand All @@ -70,7 +70,7 @@ def call_create(cmd)
end

def call_destroy(cmd)
retval = `../../../bin/ceedling module:destroy[#{cmd}]`
retval = `../../../bin/ceedling module:destroy[#{cmd}] 2>&1`
if retval.match? /Error/i
raise "Received error when destroying:\n#{retval}"
else
Expand All @@ -79,7 +79,7 @@ def call_destroy(cmd)
end

def call_stub(cmd)
retval = `../../../bin/ceedling module:stub[#{cmd}]`
retval = `../../../bin/ceedling module:stub[#{cmd}] 2>&1`
if retval.match? /Error/i
raise "Received error when stubbing:\n#{retval}"
else
Expand Down

0 comments on commit 3f97319

Please sign in to comment.