Skip to content

Commit

Permalink
Merge pull request #19703 from mgrossu/fix_bci_git_fetch
Browse files Browse the repository at this point in the history
When restarting the job the HEAD is behind the main BCI remote repository
  • Loading branch information
grisu48 authored Jul 10, 2024
2 parents d4a553d + ecd6497 commit c8e1f29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/containers/bci_test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,15 @@ sub run {
my $version = get_required_var('VERSION');
my $test_envs = get_required_var('BCI_TEST_ENVS');
my $bci_virtualenv = get_var('BCI_VIRTUALENV', 0);
my $bci_tests_branch = get_var('BCI_TESTS_BRANCH', 'origin/main');
return if ($test_envs eq '-');

reset_container_network_if_needed($engine);

assert_script_run('source bci/bin/activate') if ($bci_virtualenv);

record_info('Run', "Starting the tests for the following environments:\n$test_envs");
assert_script_run("cd /root/BCI-tests && git fetch && git reset --hard");
assert_script_run("cd /root/BCI-tests && git fetch && git reset --hard $bci_tests_branch");
assert_script_run("export TOX_PARALLEL_NO_SPINNER=1");
assert_script_run("export CONTAINER_RUNTIME=$engine");
$version =~ s/-SP/./g;
Expand Down

0 comments on commit c8e1f29

Please sign in to comment.