6e1aa7830c
`rm -rf out` used to fail because bazel would not set write permission on some files. Now it's been fixed and thus there is little reason to prefer `m clean` (also users are accustomed to `rm -rf out`) Bug: NA Test: verified `m clean` works;interestingly soong_metrics file is created at the end Change-Id: I000d16508613045811fc7792e5798f7c150dcc05
18 lines
No EOL
245 B
Bash
Executable file
18 lines
No EOL
245 B
Bash
Executable file
#!/bin/bash -eu
|
|
|
|
set -o pipefail
|
|
|
|
# Tests of Soong functionality
|
|
|
|
source "$(dirname "$0")/lib.sh"
|
|
|
|
function test_m_clean_works {
|
|
setup
|
|
|
|
mkdir -p out/some_directory
|
|
touch out/some_directory/some_file
|
|
|
|
run_soong clean
|
|
}
|
|
|
|
scan_and_run_tests |