Skip to content

Commit a551676

Browse files
committed
Refactor test script.
1 parent 945c884 commit a551676

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ci/test.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,17 @@ main() {
4141

4242
export QEMU_STRACE=1
4343

44-
# test `cross check`
45-
if [[ ! -z ${STD:-} ]]; then
44+
if [[ ${STD:-} ]]; then
45+
# test `cross check`
4646
td=$(mktemp -d)
4747
cargo init --lib --name foo $td
4848
pushd $td
4949
echo '#![no_std]' > src/lib.rs
5050
cross check --target $TARGET
5151
popd
5252
rm -rf $td
53-
fi
54-
55-
# `cross build` test for targets where `std` is not available
56-
if [[ -z "${STD:-}" ]]; then
53+
else
54+
# `cross build` test for targets where `std` is not available
5755
td=$(mktemp -d)
5856

5957
git clone \

0 commit comments

Comments
 (0)