Skip to content

fix: redirect postinstall script output to runtime output #2090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 10, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'master' into fix/postinstall-output
  • Loading branch information
Bikappa committed Feb 28, 2023
commit 0929b19889dce3c5037235ed4e3e4695ddecc529
5 changes: 3 additions & 2 deletions arduino/cores/packagemanager/package_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"net/url"
"os"
"runtime"
"strings"
"sync"
"testing"

Expand Down Expand Up @@ -707,6 +708,6 @@ func TestRunPostInstall(t *testing.T) {
os.Stdout = prevStdout
os.Stderr = prevStderr

require.Equal(t, "sent in stdout\n", string(stdout))
require.Equal(t, "sent in stderr\n", string(stderr))
require.True(t, strings.HasPrefix(string(stdout), "sent in stdout"), "Unexpected stdout %s", string(stdout))
require.True(t, strings.HasPrefix(string(stderr), "sent in stderr"), "Unexpected stdout %s", string(stderr))
}
You are viewing a condensed version of this merge commit. You can view the full changes here.