Skip to content

Commit eedec59

Browse files
author
Jorge Aparicio
committed
move temporary directory to .
1 parent a6a3e76 commit eedec59

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ci/script.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ set -ex
22

33
test_gen() {
44
echo 'extern crate volatile_register;' > $td/src/lib.rs
5-
target/$TARGET/release/svd2rust -i $td/$svd $1 >> $td/src/lib.rs
6-
pushd $td
7-
cross build --target $TARGET
8-
popd
5+
cross run --target $TARGET --release -- -i $td/$svd $1 >> $td/src/lib.rs
6+
cross build --manifest-path $td --target $TARGET
97
}
108

119
main() {
@@ -18,6 +16,9 @@ main() {
1816
;;
1917
esac
2018

19+
mv $td .
20+
td=$(basename $td)
21+
2122
# test crate
2223
cross init --name foo $td
2324
echo 'volatile-register = "0.1.0"' >> $td/Cargo.toml
@@ -61,6 +62,8 @@ main() {
6162
svd=LPC43xx_svd_v5.svd
6263
test_gen
6364
test_gen sct
65+
66+
rm -rf $td
6467
}
6568

6669
if [ -z $TRAVIS_TAG ]; then

0 commit comments

Comments
 (0)