Skip to content

Commit

Permalink
Added RUST_BACKTRACE=1 to enable backtraces
Browse files Browse the repository at this point in the history
If svd2rust fails its always useful to get some information about the where and why
  • Loading branch information
therealprof authored May 22, 2019
1 parent 3073d7e commit 24b861d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test_svd() {
# NOTE we care about errors in svd2rust, but not about errors / warnings in rustfmt
local cwd=$(pwd)
pushd $td
$cwd/target/$TARGET/release/svd2rust -i ${1}.svd
RUST_BACKTRACE=1 $cwd/target/$TARGET/release/svd2rust -i ${1}.svd

mv lib.rs src/lib.rs

Expand Down Expand Up @@ -437,7 +437,7 @@ main() {
# Test MSP430
pushd $td

$cwd/target/$TARGET/release/svd2rust --target msp430 -i $td/msp430g2553.svd
RUST_BACKTRACE=1 $cwd/target/$TARGET/release/svd2rust --target msp430 -i $td/msp430g2553.svd
mv $td/lib.rs $td/src/lib.rs
rustfmt $td/src/lib.rs || true

Expand All @@ -448,7 +448,7 @@ main() {
# Test RISC-V
pushd $td

$cwd/target/$TARGET/release/svd2rust --target riscv -i $td/e310x.svd
RUST_BACKTRACE=1 $cwd/target/$TARGET/release/svd2rust --target riscv -i $td/e310x.svd
mv $td/lib.rs $td/src/lib.rs
rustfmt $td/src/lib.rs || true

Expand Down

0 comments on commit 24b861d

Please sign in to comment.