Skip to content

Commit

Permalink
last missed renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Apr 13, 2021
1 parent 10ee6a6 commit 509ee63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,6 @@ jobs:
for example in .github/example-run/*.ron; do
example_name=`basename $example .ron`
echo "running $example_name - "`date`
time DEBUG_CONFIG=$example VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json DRI_PRIME=0 xvfb-run cargo run --example $example_name --no-default-features --features "bevy_dynamic_plugin,bevy_gilrs,bevy_gltf,bevy_wgpu,bevy_winit,render,png,hdr,x11,bevy_ci_testing"
time CI_TESTING_CONFIG=$example VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json DRI_PRIME=0 xvfb-run cargo run --example $example_name --no-default-features --features "bevy_dynamic_plugin,bevy_gilrs,bevy_gltf,bevy_wgpu,bevy_winit,render,png,hdr,x11,bevy_ci_testing"
sleep 10
done
6 changes: 3 additions & 3 deletions crates/bevy_app/src/ci_testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ pub struct CiTestingConfig {

fn ci_testing_exit_after(
mut current_frame: bevy_ecs::prelude::Local<u32>,
debug_config: bevy_ecs::prelude::Res<CiTestingConfig>,
ci_testing_config: bevy_ecs::prelude::Res<CiTestingConfig>,
mut app_exit_events: crate::EventWriter<AppExit>,
) {
if let Some(exit_after) = debug_config.exit_after {
if let Some(exit_after) = ci_testing_config.exit_after {
if *current_frame > exit_after {
app_exit_events.send(AppExit);
}
Expand All @@ -25,7 +25,7 @@ fn ci_testing_exit_after(

pub(crate) fn setup_app(app_builder: &mut AppBuilder) -> &mut AppBuilder {
let filename =
std::env::var("DEBUG_CONFIG").unwrap_or_else(|_| "ci_testing_config.ron".to_string());
std::env::var("CI_TESTING_CONFIG").unwrap_or_else(|_| "ci_testing_config.ron".to_string());
let config: CiTestingConfig = ron::from_str(
&std::fs::read_to_string(filename).expect("error reading CI testing configuration file"),
)
Expand Down

0 comments on commit 509ee63

Please sign in to comment.