Sign in
pigweed
/
third_party
/
github
/
project-chip
/
connectedhomeip
/
a4555b826d366ca442f2b4327d25327f361a079b
/
.
/
scripts
/
tests
/
save_logs.sh
blob: 95a7d7ca058042141e66e86362dbbdec6f75b56b [
file
]
#!/usr/bin/env bash
set
-
x
env
TARGET_DIR
=
$1
mkdir
-
p
"$1"
for
name
in
$
(
find
.
-
name test
-
suite
.
log
);
do
destination
=
"$1"
/
$
(
echo
"$name"
|
sed
-
E s
-
\^
.
\/
--
|
sed s
-/-
_
-
g
)
echo
"Saving $name to $destination"
cp
"$name"
"$destination"
done