-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bazel] Capture output of updatemem to make it less verbose
updatemem likes to print a lot of things which makes the CI output less readable for no particular benefit. This commit introduces a bash script that runs updatmem and captures the output. If an error occurs, it will print the path to the output and error logs. Those files are also added to the output groups of the bitstream_splice rules so that they can be queried if needed. Signed-off-by: Amaury Pouly <[email protected]>
- Loading branch information
Showing
4 changed files
with
132 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright lowRISC contributors (OpenTitan project). | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
set -e | ||
|
||
# Run the program and redirect the stdout and stderr to given files | ||
if ! "$@" >$RUN_CAPTURE_STDOUT 2>$RUN_CAPTURE_STDERR; then | ||
echo "$1 failed" >&2 | ||
echo "see stdout in $RUN_CAPTURE_STDOUT" >&2 | ||
echo "see stderr in $RUN_CAPTURE_STDERR" >&2 | ||
fi |