gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-deployment] branch master updated: Avoiding Docker i


From: gnunet
Subject: [GNUnet-SVN] [taler-deployment] branch master updated: Avoiding Docker in order to run selenium tests.
Date: Thu, 16 Feb 2017 10:13:20 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 63327d5  Avoiding Docker in order to run selenium tests.
63327d5 is described below

commit 63327d51955d29ff94d79bd91cf8be4d8895c68c
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Feb 16 10:12:18 2017 +0100

    Avoiding Docker in order to run selenium tests.
---
 selenium/crxmake                 | 42 ----------------------------------------
 selenium/launch_chrome_container |  4 ----
 selenium/launch_selenium_test    | 15 +-------------
 3 files changed, 1 insertion(+), 60 deletions(-)

diff --git a/selenium/crxmake b/selenium/crxmake
deleted file mode 100755
index 32d5778..0000000
--- a/selenium/crxmake
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash -e
-#
-# Purpose: Pack a Chromium extension directory into crx format
-
-if test $# -ne 2; then
-  echo "Usage: crxmake.sh <extension dir> <pem path>"
-  exit 1
-fi
-
-dir=$1
-key=$2
-name=$(basename "$dir")
-crx="$name.crx"
-pub="$name.pub"
-sig="$name.sig"
-zip="$name.zip"
-trap 'rm -f "$pub" "$sig" "$zip"' EXIT
-
-# zip up the crx dir
-cwd=$(pwd -P)
-(cd "$dir" && zip -qr -9 -X "$cwd/$zip" .)
-
-# signature
-openssl sha1 -sha1 -binary -sign "$key" < "$zip" > "$sig"
-
-# public key
-openssl rsa -pubout -outform DER < "$key" > "$pub" 2>/dev/null
-
-byte_swap () {
-  # Take "abcdefgh" and return it as "ghefcdab"
-  echo "${1:6:2}${1:4:2}${1:2:2}${1:0:2}"
-}
-
-crmagic_hex="4372 3234" # Cr24
-version_hex="0200 0000" # 2
-pub_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$pub" | awk '{print $5}')))
-sig_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$sig" | awk '{print $5}')))
-(
-  echo "$crmagic_hex $version_hex $pub_len_hex $sig_len_hex" | xxd -r -p
-  cat "$pub" "$sig" "$zip"
-) > "$crx"
-echo "Wrote $crx"
diff --git a/selenium/launch_chrome_container b/selenium/launch_chrome_container
deleted file mode 100755
index 42935f2..0000000
--- a/selenium/launch_chrome_container
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-# If container runs out of heap space, add '-e JAVA_OPTS=-Xmx2g'
-docker run --name container_chrome -d -p 4444:4444 
selenium/standalone-chrome-debug
diff --git a/selenium/launch_selenium_test b/selenium/launch_selenium_test
index 804d145..00fe6d0 100755
--- a/selenium/launch_selenium_test
+++ b/selenium/launch_selenium_test
@@ -14,19 +14,6 @@ git submodule update --remote
 
 tsc # use 'make' once yarn problems art fixed.
 
-xvfb-run chromium --pack-extension $HOME/wallet-webex 
-
-eval $(docker-machine env)
-
-# Get fresh image
-if docker restart container_chrome > /dev/null;
-then echo "Chrome container succesfully restarted";
-fi
-
-# Give time for the container to get fully operational
-sleep 2
-
 # call python3 selenium script
 python3 $HOME/wallet-webex/selenium/withdraw_buy.py \
-  --ext=$HOME/ext.crx \
-  --remote=http://$(docker-machine ip):4444/wd/hub
+  --ext-unpacked=$HOME/wallet-webex

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]