M .github/workflows/main.yml => .github/workflows/main.yml +2 -1
@@ 96,8 96,9 @@ jobs:
- name: start emulator
run: |
rm -f /tmp/purephone_pts_name
- ./run_emulator_on_filesystem_image.sh > emulator.log 2>&1 &
+ ./run_release_emulator_on_image.sh &> emulator.log &
echo $! > emulator.pid
+ echo "Emulator PID: $(cat emulator.pid)"
- name: run tests
run: pytest ./pytest -rP -s --port=simulator --timeout=120 -m 'not rt1051'
working-directory: test
A run_release_emulator_on_image.sh => run_release_emulator_on_image.sh +21 -0
@@ 0,0 1,21 @@
+#!/bin/bash -e
+# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
+# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
+
+
+pushd build-linux-Release
+
+PRELOAD_LIB=$(realpath board/linux/libiosyscalls/libiosyscalls.so)
+APP_BINARY="./PurePhone.elf"
+RENDERER="./service_renderer"
+if [ ! -x "$APP_BINARY" ]; then
+ echo "Error: $APP_BINARY doesn't exists"
+elif [ ! -x "$PRELOAD_LIB" ]; then
+ echo "Error: $PRELOAD_LIB doesn't exists"
+else
+ echo "Running emulator in directory: $(pwd)"
+ $RENDERER &
+ export IOSYSCALLS_REDIRECT_TO_IMAGE=1
+ export LD_PRELOAD=$PRELOAD_LIB
+ exec "$APP_BINARY"
+fi
M test/pytest/test_dom_dump.py => test/pytest/test_dom_dump.py +1 -1
@@ 7,6 7,6 @@ from harness import log
def test_get_dom(harness):
body = {"ui": True, "getWindow": True}
result = harness.endpoint_request("developerMode", "get", body)
- log.info("data {}".format(result))
+ #log.info("data {}".format(result))
assert result['body']
assert 'Window' in result['body']['dom']