-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/env.sh: Expose TEST_ID variable to tests
Its value is a random identifier unique to the current run of the current test. Signed-off-by: Alberto Faria <[email protected]>
- Loading branch information
1 parent
132cc4c
commit 7b02635
Showing
11 changed files
with
49 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
__engine run --detach --name emulated "${TEST_IMAGES[fedora]}" --emulated | ||
__engine exec emulated --as fedora | ||
__engine run --detach --name "$TEST_ID" "${TEST_IMAGES[fedora]}" --emulated | ||
__engine exec "$TEST_ID" --as fedora |
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
__engine run --detach --name stop-start "${TEST_IMAGES[fedora]}" | ||
__engine run --detach --name "$TEST_ID" "${TEST_IMAGES[fedora]}" | ||
|
||
__engine exec stop-start --as fedora '[[ ! -e i-was-here ]] && touch i-was-here' | ||
__engine exec "$TEST_ID" --as fedora '[[ ! -e i-was-here ]] && touch i-was-here' | ||
|
||
for (( i = 0; i < 2; ++i )); do | ||
|
||
__engine stop stop-start | ||
__engine start stop-start | ||
__engine stop "$TEST_ID" | ||
__engine start "$TEST_ID" | ||
|
||
__engine exec stop-start --as fedora '[[ -e i-was-here ]]' | ||
__engine exec "$TEST_ID" --as fedora '[[ -e i-was-here ]]' | ||
|
||
done |