Flush queued IDE writes and restart validation after host revision changes
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Force a host revision to overtake in-flight target validation in the shared Kit."""
|
||||
import argparse
|
||||
import os
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
p = argparse.ArgumentParser(description=__doc__)
|
||||
p.add_argument('--java-home', type=Path, required=True)
|
||||
p.add_argument('--target-java-home', type=Path, required=True)
|
||||
args = p.parse_args()
|
||||
classpath = os.pathsep.join([
|
||||
str(ROOT / 'designer-standalone/target/test-classes'),
|
||||
str(ROOT / 'designer-standalone/target/classes'),
|
||||
(ROOT / 'designer-standalone/target/smoke-classpath.txt').read_text().strip()])
|
||||
with tempfile.TemporaryDirectory(prefix='designer-render-race-') as tmp:
|
||||
fixture = Path(tmp) / 'project'
|
||||
subprocess.run([sys.executable, ROOT / 'scripts/prepare-fixture-host.py',
|
||||
'--destination', fixture, '--mode', 'modulepath',
|
||||
'--target-java-home', args.target_java_home], check=True)
|
||||
subprocess.run([args.java_home / 'bin/java', '--enable-native-access=ALL-UNNAMED',
|
||||
'-Ddesigner.check.racesOnly=true', '-cp', classpath,
|
||||
'de.neitzel.fxdesigner.standalone.KitWorkflowSmoke',
|
||||
fixture / '.neitzel-fx-designer/host.properties',
|
||||
fixture / 'app/src/main/resources/fixture/components/Person.fxml',
|
||||
Path(tmp) / 'unused.png'], check=True, timeout=90, cwd=ROOT)
|
||||
Reference in New Issue
Block a user