From deedb3d0ece2619df17c5713bb4cb2246b94fbae Mon Sep 17 00:00:00 2001 From: Piotr Bielak Date: Mon, 25 Aug 2025 11:17:51 +0300 Subject: [PATCH] Make mbxp_evaluation setup script non-interactive The `mbxp_evaluation/evaluation_setup/ubuntu.sh` script contains commands that require user input (confirmation of installation etc.), which makes the script not suitable for automated tests. This commit fixes these commands (adding `-y` arguments). --- .../mbxp_evaluation/evaluation_setup/ubuntu.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/text-generation/mbxp_evaluation/evaluation_setup/ubuntu.sh b/examples/text-generation/mbxp_evaluation/evaluation_setup/ubuntu.sh index eb518a8c16..cbabf62ff2 100755 --- a/examples/text-generation/mbxp_evaluation/evaluation_setup/ubuntu.sh +++ b/examples/text-generation/mbxp_evaluation/evaluation_setup/ubuntu.sh @@ -1,18 +1,18 @@ #!/usr/bin/bash -apt update +apt update -y echo "--> Ruby" apt install -y ruby-full echo "--> PHP" apt install -y software-properties-common ca-certificates lsb-release apt-transport-https -add-apt-repository ppa:ondrej/php +add-apt-repository -y ppa:ondrej/php apt update -y apt install -y php-{pear,cgi,common,curl,mbstring,gd,bcmath,json,xml,fpm,intl,zip} php8.0 echo "--> JavaScript" -apt install curl +apt install -y curl curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash # Check if the lines containing NVM_DIR already exist in .bashrc if ! grep -q 'NVM_DIR' ~/.bashrc; then @@ -20,7 +20,7 @@ if ! grep -q 'NVM_DIR' ~/.bashrc; then grep 'NVM_DIR' ~/.zshrc >> ~/.bashrc fi PS1=1 source ~/.bashrc -apt install npm +apt install -y npm nvm install 20.17.0 node -e "console.log('Running Node.js ' + process.version)" npm i -g npm