Skip to content

Commit 77a52fd

Browse files
committed
fix missing cd and remove warning in AWS script
1 parent e44220d commit 77a52fd

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

scripts/aws_tests.bash

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,19 @@ process_instance() {
4747

4848
rsync -avz --partial --progress --exclude ".git" --exclude "build" -e "${SSH_COMMAND}" \
4949
./ ubuntu@${PUBLIC_IP}:~/${PROJECT_DIR}
50-
${SSH_COMMAND} ubuntu@${PUBLIC_IP} << 'EOF'
50+
${SSH_COMMAND} ubuntu@${PUBLIC_IP} << EOF
5151
set -e # Exit on error
5252
53-
# Install dependencies
53+
echo "Updating and installing dependencies on ${INSTANCE_NAME}..."
5454
sudo apt update
55-
sudo apt install -y linux-tools-common linux-tools-generic g++ cmake
55+
sudo DEBIAN_FRONTEND=noninteractive \
56+
apt install -y linux-tools-common linux-tools-generic g++ cmake python3
5657
57-
# Build the project
58+
echo "Building project..."
59+
cd ~/${PROJECT_DIR}
5860
cmake -B build . && cmake --build build
5961
60-
# Run the script to generate multiple tables
62+
echo "Running the python script to generate tests..."
6163
./scripts/generate_multiple_tables.py
6264
EOF
6365

scripts/generate_multiple_tables.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
# Configuration
88
benchmark_executable = './build/benchmarks/benchmark'
9-
latex_script = './scripts/latex_table.py'
109
output_dir = './outputs'
1110
input_files = [
1211
'data/canada.txt',
@@ -60,7 +59,7 @@ def run_cmd(cmd):
6059
def process_job(label, cmd_args, flags):
6160
# Run the benchmark
6261
cmd = [benchmark_executable] + cmd_args + flags
63-
print(f"Running: {' '.join(cmd)}")
62+
print(f"Running: {' '.join(cmd)}", flush=True)
6463
output = run_cmd(cmd)
6564

6665
# Build output file name
@@ -73,7 +72,7 @@ def process_job(label, cmd_args, flags):
7372
tex_content = generate_latex_table(output)
7473
with open(out_path, 'w') as f:
7574
f.write(tex_content)
76-
print(f"Written: {out_path}\n")
75+
print(f"Written: {out_path}\n", flush=True)
7776

7877

7978
if __name__ == '__main__':

0 commit comments

Comments
 (0)