# HG changeset patch
# User Edouard Tisserant <edouard.tisserant@gmail.com>
# Date 1665493634 -7200
# Node ID db3ea47b0d0b3b8235d02d65239b699c387633ce
# Parent  837e7782d83e9856ed1c53abdb6903ea1babe565
Tests: fix OPC-UA test when run from repo.

project_files directory isn't commited because empty,
test fails if project_files is missing.

diff -r 837e7782d83e -r db3ea47b0d0b tests/cli_tests/opcua_test_encrypted.bash
--- a/tests/cli_tests/opcua_test_encrypted.bash	Tue Oct 11 15:02:07 2022 +0200
+++ b/tests/cli_tests/opcua_test_encrypted.bash	Tue Oct 11 15:07:14 2022 +0200
@@ -55,8 +55,9 @@
 EOF
 SERVER_PID=$!
 
-cp my_cert.der my_private_key.pem \
-   $BEREMIZPATH/tests/projects/opcua_client_encrypted/project_files
+PROJECT_FILES_DIR=$BEREMIZPATH/tests/projects/opcua_client_encrypted/project_files
+mkdir $PROJECT_FILES_DIR
+cp my_cert.der my_private_key.pem $PROJECT_FILES_DIR
 
 # Start PLC with opcua test
 setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k \