-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-package tests were missing in the CI and they are important. This adds them.
- Loading branch information
Showing
4 changed files
with
100 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,19 @@ preload_config | |
|
||
echo '127.0.0.1 example.com' | sudo tee -a /etc/hosts >/dev/null | ||
|
||
sudo apt-get install -y bitcoin-regtest lnd btcpayserver python3-selenium selfhost-clearnet python3-lnpbp-testkit | ||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; | ||
then | ||
dbus_launch=dbus-launch | ||
dbus_x11=dbus-x11 | ||
else | ||
dbus_launch=true | ||
fi | ||
|
||
sudo apt-get install -y bitcoin-regtest lnd btcpayserver python3-selenium selfhost-clearnet python3-lnpbp-testkit $dbus_x11 | ||
|
||
eval `$dbus_launch` | ||
|
||
echo "Starting selenium test" >&2 | ||
$test_dir/multi-package/btcpayserver-regtest/selenium_after_install.py | ||
$test_dir/multi-package/btcpayserver-regtest/selenium_after_install.py & | ||
sleep 1m | ||
systemctl --user status [email protected] |
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 |
---|---|---|
|
@@ -35,7 +35,11 @@ def is_synced(self): | |
eprint(response.text) | ||
return response.json()["isFullySynched"] | ||
|
||
network().warm_up() | ||
try: | ||
network().warm_up() | ||
except: | ||
subprocess.run(["systemctl", "--user", "status", "[email protected]"]) | ||
raise | ||
|
||
nbxplorer = NBXplorer() | ||
|
||
|
@@ -50,6 +54,8 @@ def is_synced(self): | |
|
||
chrome_options = webdriver.ChromeOptions() | ||
chrome_options.add_argument("ignore-certificate-errors") | ||
if "DISPLAY" not in os.environ: | ||
chrome_options.add_argument("headless=new") | ||
driver = webdriver.Chrome(chrome_options=chrome_options) | ||
|
||
eprint("Registering an admin account") | ||
|
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