update runner scripts to allow different experiment arguments

This commit is contained in:
2026-05-27 16:37:15 +02:00
parent ebaf128d92
commit 25e10511e1
3 changed files with 37 additions and 12 deletions

View File

@ -6,6 +6,7 @@ use diagnostics;
use FindBin;
use lib $FindBin::Bin;
use lib "$FindBin::Bin/../../scripts";
use Util;
@ -273,16 +274,14 @@ sub results {
}
}
# Run experiments
my @experiments = Util::find_subdirs($remote_builds_dir);
for my $experiment (@experiments) {
Util::rewrite_file( $remote_db_conf, "database=",
"database=${db_prefix}_$experiment\n" );
# Run single experiment passed as argument
my $experiment = $ARGV[0] or die "Usage: runner.pl <experiment>\n";
Util::rewrite_file( $remote_db_conf, "database=",
"database=${db_prefix}_$experiment\n" );
trace($experiment);
import_trace($experiment);
inject($experiment);
results($experiment);
}
trace($experiment);
import_trace($experiment);
inject($experiment);
results($experiment);
Util::notify("Finished all experiments");
Util::notify("Finished experiment $experiment");