This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 596
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 #2506 from flynn/test-script-updates
Test script updates
- Loading branch information
Showing
7 changed files
with
130 additions
and
41 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
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
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,30 @@ | ||
#!/bin/bash | ||
|
||
for pid in $(ps faux | grep '/opt/flynn-test/build/vmlinuz \-append' | grep -v grep | awk '{print $2}'); do | ||
echo killing $pid | ||
kill $pid | ||
done | ||
|
||
sleep 1 | ||
|
||
for tap in $(ifconfig | grep flynntap | awk '{print $1}'); do | ||
echo removing $tap | ||
sudo ip tuntap del mode tap $tap | ||
done | ||
|
||
for br in $(ifconfig | grep flynnbr | awk '{print $1}'); do | ||
echo removing $br | ||
sudo ip link set $br down | ||
sudo ip link del $br | ||
done | ||
|
||
for br in $(sudo ip link | grep flynnbr | awk '{print $2}' | cut -d : -f 1); do | ||
echo deleting $br | ||
sudo brctl delbr | ||
done | ||
|
||
rm -rf /opt/flynn-test/build/rootfs-* | ||
rm -rf /opt/flynn-test/build/netfs-* | ||
rm -rf /opt/flynn-test/build/build-log* | ||
|
||
echo done |
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