ci: fix the using_comptime_env.vv test (execute only on ubuntu-tcc again)

pull/8606/head^2
Delyan Angelov 2021-02-06 13:07:15 +02:00
parent 9b839b3b7d
commit e57b73bcfc
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 6 additions and 7 deletions

View File

@ -100,8 +100,10 @@ fn test_all() {
skip_unused_tasks.run() skip_unused_tasks.run()
} }
// //
{ if github_job == 'ubuntu-tcc' {
// these should be run serially, since they depend on setting and using environment variables // This is done with tcc only, because the error output is compiler specific.
// NB: the tasks should be run serially, since they depend on
// setting and using environment variables.
mut cte_tasks := Tasks{ mut cte_tasks := Tasks{
vexe: vexe vexe: vexe
parallel_jobs: 1 parallel_jobs: 1
@ -112,11 +114,8 @@ fn test_all() {
cte_tasks.add('', cte_dir, '-no-retry-compilation run', '.run.out', files, false) cte_tasks.add('', cte_dir, '-no-retry-compilation run', '.run.out', files, false)
cte_tasks.add('VAR=/usr/include $vexe', cte_dir, '-no-retry-compilation run', cte_tasks.add('VAR=/usr/include $vexe', cte_dir, '-no-retry-compilation run',
'.var.run.out', ['using_comptime_env.vv'], false) '.var.run.out', ['using_comptime_env.vv'], false)
if github_job == 'ubuntu-tcc' { cte_tasks.add('VAR=/opt/invalid/path $vexe', cte_dir, '-no-retry-compilation run',
// this is done with tcc only, because the error output is compiler specific: '.var_invalid.run.out', ['using_comptime_env.vv'], false)
cte_tasks.add('VAR=/opt/invalid/path $vexe', cte_dir, '-no-retry-compilation run',
'.var_invalid.run.out', ['using_comptime_env.vv'], false)
}
cte_tasks.run() cte_tasks.run()
} }
} }