-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2230 from flatcar/krnowak/drop-python-test-stuff
Drop python tests from GCE and Azure OEM images and python sysext
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/manglefs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
rootfs=${1} | ||
|
||
# Remove test stuff from python - it's quite large. | ||
for p in "${rootfs}"/usr/lib/python*; do | ||
if [[ ! -d ${p} ]]; then | ||
continue | ||
fi | ||
# find directories named tests or test and remove them (-prune | ||
# avoids searching below those directories) | ||
find "${p}" \( -name tests -o -name test \) -type d -prune -exec rm -rf '{}' '+' | ||
done |